We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c63415 commit 27bcdc4Copy full SHA for 27bcdc4
tests/test.rs
@@ -600,6 +600,23 @@ fn clang_apple_tvsimulator() {
600
}
601
602
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
620
#[test]
621
fn compile_intermediates() {
622
let test = Test::gnu();
0 commit comments