Skip to content

Commit dd39186

Browse files
committed
Add simple test
1 parent 1acf378 commit dd39186

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/test.rs

+17
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,23 @@ fn clang_apple_tvsimulator() {
600600
}
601601
}
602602

603+
#[cfg(target_os = "macos")]
604+
#[test]
605+
fn clang_apple_visionos() {
606+
let test = Test::clang();
607+
test.gcc()
608+
.__set_env("XROS_DEPLOYMENT_TARGET", "1.0")
609+
.target("aarch64-apple-visionos")
610+
.file("foo.c")
611+
.compile("foo");
612+
613+
dbg!(test.cmd(0).args);
614+
615+
test.cmd(0).must_have("--target=arm64-apple-xros1.0");
616+
test.cmd(0).must_not_have("-mxros-version-min=1.0");
617+
test.cmd(0).must_not_have("-mxrsimulator-version-min=1.0");
618+
}
619+
603620
#[test]
604621
fn compile_intermediates() {
605622
let test = Test::gnu();

0 commit comments

Comments
 (0)