We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccb5d0a commit a4ff823Copy full SHA for a4ff823
src/librustc_target/spec/apple_ios_base.rs
@@ -1,5 +1,6 @@
1
use std::env;
2
use std::io;
3
+use std::path::Path;
4
use std::process::Command;
5
use crate::spec::{LinkArgs, LinkerFlavor, TargetOptions};
6
@@ -29,7 +30,7 @@ impl Arch {
29
30
31
pub fn get_sdk_root(sdk_name: &str) -> Result<String, String> {
32
if let Some(sdkroot) = env::var("SDKROOT").ok() {
- let sdkroot_path = Path::new(sdkroot);
33
+ let sdkroot_path = Path::new(&sdkroot);
34
if sdkroot_path.is_absolute() && sdkroot_path != Path::new("/") && sdkroot_path.exists() {
35
return Ok(sdkroot);
36
}
0 commit comments