0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00

Small fixes

* Squelch printf format warning.
* Fix Linux build by symlinking buildtools to v8/buildtools.
* Lint comment in BUILD.gn.
This commit is contained in:
Bert Belder 2018-06-17 00:12:55 +02:00
parent a77af25480
commit 7887469524
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
3 changed files with 4 additions and 3 deletions

View file

@ -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",

1
deno2/buildtools Symbolic link
View file

@ -0,0 +1 @@
v8/buildtools

View file

@ -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_);