Skip to content

Commit 1a72384

Browse files
committed
Allow specifying SDKROOT as containing XRSimulator.platform
Checking this was missing from the `link_env_remove` function, so compilation might fail if set when compiling for macOS
1 parent 69a3b0e commit 1a72384

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_target/src/spec/base/apple

1 file changed

+1
-0
lines changed

compiler/rustc_target/src/spec/base/apple/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ fn link_env_remove(os: &'static str) -> StaticCow<[StaticCow<str>]> {
298298
|| sdkroot.contains("WatchOS.platform")
299299
|| sdkroot.contains("WatchSimulator.platform")
300300
|| sdkroot.contains("XROS.platform")
301+
|| sdkroot.contains("XRSimulator.platform")
301302
{
302303
env_remove.push("SDKROOT".into())
303304
}

0 commit comments

Comments
 (0)