From 78874695244cf67e0adf4e4c701e9382fc6f0bf9 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sun, 17 Jun 2018 00:12:55 +0200 Subject: Small fixes * Squelch printf format warning. * Fix Linux build by symlinking buildtools to v8/buildtools. * Lint comment in BUILD.gn. --- deno2/BUILD.gn | 2 +- deno2/buildtools | 1 + deno2/file_util.cc | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 120000 deno2/buildtools 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(data_.size())); file_ << buffer; snprintf(buffer, sizeof(buffer), "static const v8::StartupData %s_blob =\n", name_); -- cgit v1.2.3