We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53fb72c commit 11f5390Copy full SHA for 11f5390
src/lib.rs
@@ -2181,7 +2181,12 @@ impl Build {
2181
};
2182
2183
self.print(&format!("Detecting {} SDK path for {}", os, sdk));
2184
- let sdk_path = self.apple_sdk_root(sdk.as_str())?;
+ let sdk_path = if let Some(sdkroot) = env::var_os("SDKROOT") {
2185
+ sdkroot
2186
+ } else {
2187
+ self.apple_sdk_root(sdk.as_str())?
2188
+ };
2189
+
2190
cmd.args.push("-isysroot".into());
2191
cmd.args.push(sdk_path);
2192
cmd.args.push("-fembed-bitcode".into());
0 commit comments