diff options
| author | Scott Wolchok <swolchok@fb.com> | 2019-07-23 13:37:17 -0700 |
|---|---|---|
| committer | Scott Wolchok <swolchok@fb.com> | 2019-07-23 13:37:17 -0700 |
| commit | a4ff823f5d7205a983461063d08902986c11d00d (patch) | |
| tree | 9ea5855a603ba24199a4ce3fd28a41060c5fafba /src | |
| parent | ccb5d0a7c170434bb2ced860ec7139f4c6f964ce (diff) | |
fix check
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_target/spec/apple_ios_base.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_target/spec/apple_ios_base.rs b/src/librustc_target/spec/apple_ios_base.rs index 40cc7f42010..d400bc62bfd 100644 --- a/src/librustc_target/spec/apple_ios_base.rs +++ b/src/librustc_target/spec/apple_ios_base.rs @@ -1,5 +1,6 @@ use std::env; use std::io; +use std::path::Path; use std::process::Command; use crate::spec::{LinkArgs, LinkerFlavor, TargetOptions}; @@ -29,7 +30,7 @@ impl Arch { pub fn get_sdk_root(sdk_name: &str) -> Result<String, String> { if let Some(sdkroot) = env::var("SDKROOT").ok() { - let sdkroot_path = Path::new(sdkroot); + let sdkroot_path = Path::new(&sdkroot); if sdkroot_path.is_absolute() && sdkroot_path != Path::new("/") && sdkroot_path.exists() { return Ok(sdkroot); } |
