summaryrefslogtreecommitdiff
path: root/src/compiler.rs
diff options
context:
space:
mode:
authorandy finch <andyfinch7@gmail.com>2019-03-04 18:09:35 -0500
committerRyan Dahl <ry@tinyclouds.org>2019-03-04 18:09:35 -0500
commit75fe80d5a4992ddad89160c2e0113a1af8d3d24a (patch)
treeb176830727f0e143f8d26066e4056085ad034403 /src/compiler.rs
parent77d7ad61f39641b79a60a99da2f939cbc1d8fe39 (diff)
`use-snapshots` build option for cross compile support. (#1852)
Diffstat (limited to 'src/compiler.rs')
-rw-r--r--src/compiler.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index 716a9bbea..5fe335c55 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -1,6 +1,7 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
use crate::isolate::Buf;
use crate::isolate::IsolateState;
+use crate::isolate_init;
use crate::msg;
use crate::permissions::DenoPermissions;
use crate::resources;
@@ -50,6 +51,7 @@ impl ModuleMetaData {
fn lazy_start(parent_state: &Arc<IsolateState>) -> Resource {
let mut cell = C_RID.lock().unwrap();
+ let isolate_init = isolate_init::compiler_isolate_init();
let permissions = DenoPermissions {
allow_read: AtomicBool::new(true),
allow_write: AtomicBool::new(true),
@@ -59,6 +61,7 @@ fn lazy_start(parent_state: &Arc<IsolateState>) -> Resource {
};
let rid = cell.get_or_insert_with(|| {
let resource = workers::spawn(
+ isolate_init,
parent_state.clone(),
"compilerMain()".to_string(),
permissions,