Skip to content

Commit a4ff823

Browse files
committed
fix check
1 parent ccb5d0a commit a4ff823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/librustc_target/spec/apple_ios_base.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::env;
22
use std::io;
3+
use std::path::Path;
34
use std::process::Command;
45
use crate::spec::{LinkArgs, LinkerFlavor, TargetOptions};
56

@@ -29,7 +30,7 @@ impl Arch {
2930

3031
pub fn get_sdk_root(sdk_name: &str) -> Result<String, String> {
3132
if let Some(sdkroot) = env::var("SDKROOT").ok() {
32-
let sdkroot_path = Path::new(sdkroot);
33+
let sdkroot_path = Path::new(&sdkroot);
3334
if sdkroot_path.is_absolute() && sdkroot_path != Path::new("/") && sdkroot_path.exists() {
3435
return Ok(sdkroot);
3536
}

0 commit comments

Comments
 (0)