Skip to content

Commit 1acf378

Browse files
committed
Do not emit -mxros-version-min=... as that is not yet supported
1 parent 31039f2 commit 1acf378

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/lib.rs

+8-3
Original file line numberDiff line numberDiff line change
@@ -2664,9 +2664,14 @@ impl Build {
26642664
AppleArchSpec::Device(arch) => {
26652665
cmd.args.push("-arch".into());
26662666
cmd.args.push(arch.into());
2667-
cmd.args.push(
2668-
format!("-m{}os-version-min={}", sdk_details.sdk_prefix, min_version).into(),
2669-
);
2667+
// `-mxros-version-min` does not exist
2668+
// https://github.com/llvm/llvm-project/issues/88271
2669+
if os != AppleOs::VisionOS {
2670+
cmd.args.push(
2671+
format!("-m{}os-version-min={}", sdk_details.sdk_prefix, min_version)
2672+
.into(),
2673+
);
2674+
}
26702675
}
26712676
AppleArchSpec::Simulator(arch) => {
26722677
if arch.starts_with('-') {

0 commit comments

Comments
 (0)