mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
This commit is contained in:
parent
4960b6659c
commit
23bf05cff2
1 changed files with 3 additions and 1 deletions
|
@ -437,7 +437,9 @@ fn main() {
|
|||
// Host snapshots won't work when cross compiling.
|
||||
let target = env::var("TARGET").unwrap();
|
||||
let host = env::var("HOST").unwrap();
|
||||
if target != host {
|
||||
let skip_cross_check =
|
||||
env::var("DENO_SKIP_CROSS_BUILD_CHECK").map_or(false, |v| v == "1");
|
||||
if !skip_cross_check && target != host {
|
||||
panic!("Cross compiling with snapshot is not supported.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue