Skip to content

Commit f7e8ed6

Browse files
authored
Merge pull request #4704 from RalfJung/genmc-macos-fixmes
genmc: remove macOS FIXMEs
2 parents 0fea24a + 157c9c1 commit f7e8ed6

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ nix = { version = "0.30.1", features = ["mman", "ptrace", "signal"], optional =
4848
ipc-channel = { version = "0.20.0", optional = true }
4949
capstone = { version = "0.13", optional = true }
5050

51-
# FIXME(genmc,macos): Add `target_os = "macos"` once https://github.com/dtolnay/cxx/issues/1535 is fixed.
5251
[target.'cfg(all(target_os = "linux", target_pointer_width = "64", target_endian = "little"))'.dependencies]
5352
genmc-sys = { path = "./genmc-sys/", version = "0.1.0", optional = true }
5453

src/concurrency/genmc/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn run_genmc_mode<'tcx>(
3030
config: &MiriConfig,
3131
eval_entry: impl Fn(Rc<GenmcCtx>) -> Result<(), NonZeroI32>,
3232
) -> Result<(), NonZeroI32> {
33-
// Check for supported target.
33+
// Check for supported target: endianess and pointer size must match the host.
3434
if tcx.data_layout.endian != Endian::Little || tcx.data_layout.pointer_size().bits() != 64 {
3535
tcx.dcx().fatal("GenMC only supports 64bit little-endian targets");
3636
}

src/concurrency/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pub mod weak_memory;
99

1010
// Import either the real genmc adapter or a dummy module.
1111
// On unsupported platforms, we always include the dummy module, even if the `genmc` feature is enabled.
12-
// FIXME(genmc,macos): Add `target_os = "macos"` once `https://github.com/dtolnay/cxx/issues/1535` is fixed.
1312
#[cfg_attr(
1413
not(all(
1514
feature = "genmc",

tests/ui.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ fn main() -> Result<()> {
338338
}
339339

340340
// We only enable GenMC tests when the `genmc` feature is enabled, but also only on platforms we support:
341-
// FIXME(genmc,macos): Add `target_os = "macos"` once `https://github.com/dtolnay/cxx/issues/1535` is fixed.
342-
// FIXME(genmc,cross-platform): remove `host == target` check once cross-platform support with GenMC is possible.
341+
// FIXME(genmc,cross-platform): Technically we do support cross-target execution as long as the
342+
// target is also 64bit little-endian, so `host == target` is too strict.
343343
if cfg!(all(
344344
feature = "genmc",
345345
target_os = "linux",

0 commit comments

Comments
 (0)