diff options
| author | Bert Belder <bertbelder@gmail.com> | 2018-06-17 00:12:55 +0200 |
|---|---|---|
| committer | Bert Belder <bertbelder@gmail.com> | 2018-06-17 12:43:04 +0200 |
| commit | 78874695244cf67e0adf4e4c701e9382fc6f0bf9 (patch) | |
| tree | 10c9d10961b898a081287a9670351efc825fa52f | |
| parent | a77af25480ddab3c0c058c33c417d7b7791dcf74 (diff) | |
Small fixes
* Squelch printf format warning.
* Fix Linux build by symlinking buildtools to v8/buildtools.
* Lint comment in BUILD.gn.
| -rw-r--r-- | deno2/BUILD.gn | 2 | ||||
| l--------- | deno2/buildtools | 1 | ||||
| -rw-r--r-- | deno2/file_util.cc | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/deno2/BUILD.gn b/deno2/BUILD.gn index 379270271..e52e88eea 100644 --- a/deno2/BUILD.gn +++ b/deno2/BUILD.gn @@ -98,7 +98,7 @@ run_node("bundle") { "js/main.ts", "js/msg.pb.d.ts", "js/msg.pb.js", - "js/package.json", # `browserslist` field controls transform. + "js/package.json", # The `browserslist` field controls Babel behavior. ] outputs = [ out_dir + "main.js", diff --git a/deno2/buildtools b/deno2/buildtools new file mode 120000 index 000000000..c5b1c451c --- /dev/null +++ b/deno2/buildtools @@ -0,0 +1 @@ +v8/buildtools
\ No newline at end of file diff --git a/deno2/file_util.cc b/deno2/file_util.cc index ece14e9b1..c78d3e227 100644 --- a/deno2/file_util.cc +++ b/deno2/file_util.cc @@ -75,8 +75,8 @@ class StartupDataCppWriter { file_ << buffer; WriteBinaryContentsAsCArray(); file_ << "};\n"; - snprintf(buffer, sizeof(buffer), "static const int %s_blob_size = %ld;\n", - name_, data_.size()); + snprintf(buffer, sizeof(buffer), "static const int %s_blob_size = %llu;\n", + name_, static_cast<unsigned long long>(data_.size())); file_ << buffer; snprintf(buffer, sizeof(buffer), "static const v8::StartupData %s_blob =\n", name_); |
