summaryrefslogtreecommitdiff
path: root/runtime/js.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js.rs')
-rw-r--r--runtime/js.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/js.rs b/runtime/js.rs
index 099ca0c0e..def2724ce 100644
--- a/runtime/js.rs
+++ b/runtime/js.rs
@@ -14,8 +14,9 @@ pub fn deno_isolate_init() -> Snapshot {
Snapshot::Static(RUNTIME_SNAPSHOT)
}
-/// Depends on LTO to be excluded from production binaries if unused.
+#[cfg(not(feature = "include_js_files_for_snapshotting"))]
pub static SOURCE_CODE_FOR_99_MAIN_JS: &str = include_str!("js/99_main.js");
+#[cfg(feature = "include_js_files_for_snapshotting")]
pub static PATH_FOR_99_MAIN_JS: &str =
concat!(env!("CARGO_MANIFEST_DIR"), "/js/99_main.js");