1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00

Rename deno_nosnapshot to deno_ns.

This commit is contained in:
Ryan Dahl 2018-07-17 00:41:25 -04:00
parent b892188878
commit 3dde880c32
3 changed files with 6 additions and 5 deletions

View file

@ -49,5 +49,5 @@ script:
- $BUILD_PATH/handlers_test - $BUILD_PATH/handlers_test
- $BUILD_PATH/deno ./testdata/001_hello.js - $BUILD_PATH/deno ./testdata/001_hello.js
- $BUILD_PATH/deno ./testdata/002_hello.ts - $BUILD_PATH/deno ./testdata/002_hello.ts
- $BUILD_PATH/deno_nosnapshot ./testdata/001_hello.js - $BUILD_PATH/deno_ns ./testdata/001_hello.js
- $BUILD_PATH/deno_nosnapshot ./testdata/002_hello.ts - $BUILD_PATH/deno_ns ./testdata/002_hello.ts

View file

@ -8,7 +8,7 @@ group("all") {
testonly = true testonly = true
deps = [ deps = [
":deno", ":deno",
":deno_nosnapshot", ":deno_ns",
":handlers_test", ":handlers_test",
":test_cc", ":test_cc",
] ]
@ -36,7 +36,8 @@ rust_executable("deno") {
# This target is for fast incremental development. # This target is for fast incremental development.
# When modifying the javascript runtime, this target will not go through the # When modifying the javascript runtime, this target will not go through the
# extra process of building a snapshot and instead load the bundle from disk. # extra process of building a snapshot and instead load the bundle from disk.
rust_executable("deno_nosnapshot") { # ns = no snapshot
rust_executable("deno_ns") {
source_root = "src/main.rs" source_root = "src/main.rs"
extern = [ extern = [
"$rust_build:libc", "$rust_build:libc",

View file

@ -15,7 +15,7 @@
namespace deno { namespace deno {
Deno* NewFromFileSystem(void* data, deno_recv_cb cb) { Deno* NewFromFileSystem(void* data, deno_recv_cb cb) {
printf("Reading javascript runtime bundle from " BUNDLE_LOCATION "\n"); printf("load bundle " BUNDLE_LOCATION "\n");
std::string js_source; std::string js_source;
CHECK(deno::ReadFileToString(BUNDLE_LOCATION, &js_source)); CHECK(deno::ReadFileToString(BUNDLE_LOCATION, &js_source));