about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorScott Wolchok <swolchok@fb.com>2019-07-23 13:37:17 -0700
committerScott Wolchok <swolchok@fb.com>2019-07-23 13:37:17 -0700
commita4ff823f5d7205a983461063d08902986c11d00d (patch)
tree9ea5855a603ba24199a4ce3fd28a41060c5fafba /src
parentccb5d0a7c170434bb2ced860ec7139f4c6f964ce (diff)
fix check
Diffstat (limited to 'src')
-rw-r--r--src/librustc_target/spec/apple_ios_base.rs3
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);
         }