Skip to content

Commit

Permalink
Allow specifying SDKROOT as containing XRSimulator.platform
Browse files Browse the repository at this point in the history
Checking this was missing from the `link_env_remove` function, so compilation might fail if set when compiling for macOS
  • Loading branch information
madsmtm committed Apr 10, 2024
1 parent 69a3b0e commit 1a72384
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_target/src/spec/base/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ fn link_env_remove(os: &'static str) -> StaticCow<[StaticCow<str>]> {
|| sdkroot.contains("WatchOS.platform")
|| sdkroot.contains("WatchSimulator.platform")
|| sdkroot.contains("XROS.platform")
|| sdkroot.contains("XRSimulator.platform")
{
env_remove.push("SDKROOT".into())
}
Expand Down

0 comments on commit 1a72384

Please sign in to comment.