diff options
Diffstat (limited to 'ext/ffi/build.rs')
-rw-r--r-- | ext/ffi/build.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/ffi/build.rs b/ext/ffi/build.rs index 091dd9599..1debd6b9c 100644 --- a/ext/ffi/build.rs +++ b/ext/ffi/build.rs @@ -1,8 +1,9 @@ // Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. -use std::env; - +#[cfg(not(target_os = "windows"))] fn build_tcc() { + use std::env; + { // TODO(@littledivy): Windows support for fast call. // let tcc_path = root @@ -58,6 +59,8 @@ fn main() {} #[cfg(not(target_os = "windows"))] fn main() { + use std::env; + if let Ok(tcc_path) = env::var("TCC_PATH") { println!("cargo:rustc-link-search=native={}", tcc_path); } else { |