Skip to content

Commit 3da1cc9

Browse files
committed
fixup! let wasm_runtime build its own toolchain
Signed-off-by: Jorge Prendes <[email protected]>
1 parent b554027 commit 3da1cc9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/wasm_runtime/build.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,7 @@ fn main() {
7777

7878
println!("cargo:rerun-if-changed=.");
7979
let mut cfg = cc::Build::new();
80-
let path = env::var_os("PATH").unwrap_or_default();
81-
let paths = env::split_paths(&path);
82-
let joined = env::join_paths(paths.chain(std::iter::once(toolchain_dir))).unwrap();
83-
env::set_var("PATH", &joined);
84-
85-
// Get the wasmtime_platform.h file from the appropriate wasm release
80+
cfg.compiler(toolchain_dir.join("clang"));
8681

8782
// get the version of the wasmtime crate
8883

0 commit comments

Comments
 (0)