From 1a7238407c8964fb902f259d712eac9e87052680 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 10 Apr 2024 18:00:43 +0200 Subject: [PATCH] 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 --- compiler/rustc_target/src/spec/base/apple/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_target/src/spec/base/apple/mod.rs b/compiler/rustc_target/src/spec/base/apple/mod.rs index 021457b145f..d667bad44e3 100644 --- a/compiler/rustc_target/src/spec/base/apple/mod.rs +++ b/compiler/rustc_target/src/spec/base/apple/mod.rs @@ -298,6 +298,7 @@ fn link_env_remove(os: &'static str) -> StaticCow<[StaticCow]> { || sdkroot.contains("WatchOS.platform") || sdkroot.contains("WatchSimulator.platform") || sdkroot.contains("XROS.platform") + || sdkroot.contains("XRSimulator.platform") { env_remove.push("SDKROOT".into()) }