Skip to content

Commit f5faf81

Browse files
authored
Rollup merge of #143817 - Kobzol:wasi-sdk-path, r=jieyouxu
Access `wasi_sdk_path` instead of reading environment variable in bootstrap Small cleanup to remove an environment variable read that we have performed earlier in bootstrap already.
2 parents 424dad0 + 0528cc9 commit f5faf81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ impl Build {
13181318
if let Some(path) = configured {
13191319
return Some(path.join("lib").join(target.to_string()));
13201320
}
1321-
let mut env_root = PathBuf::from(std::env::var_os("WASI_SDK_PATH")?);
1321+
let mut env_root = self.wasi_sdk_path.clone()?;
13221322
env_root.push("share");
13231323
env_root.push("wasi-sysroot");
13241324
env_root.push("lib");

0 commit comments

Comments
 (0)