mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +00:00
Fix a binary size regression
This patch changes Jumbo build to use only in debug mode.
This commit is contained in:
parent
25c97962f4
commit
28682a1d2c
2 changed files with 3 additions and 5 deletions
4
.gn
4
.gn
|
@ -32,10 +32,6 @@ default_args = {
|
||||||
treat_warnings_as_errors = false
|
treat_warnings_as_errors = false
|
||||||
rust_treat_warnings_as_errors = true
|
rust_treat_warnings_as_errors = true
|
||||||
|
|
||||||
# Enable Jumbo build by default
|
|
||||||
# https://chromium.googlesource.com/chromium/src/+/master/docs/jumbo.md
|
|
||||||
use_jumbo_build = true
|
|
||||||
|
|
||||||
# https://cs.chromium.org/chromium/src/docs/ccache_mac.md
|
# https://cs.chromium.org/chromium/src/docs/ccache_mac.md
|
||||||
clang_use_chrome_plugins = false
|
clang_use_chrome_plugins = false
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,9 @@ def generate_gn_args(mode):
|
||||||
if mode == "release":
|
if mode == "release":
|
||||||
out += ["is_official_build=true"]
|
out += ["is_official_build=true"]
|
||||||
elif mode == "debug":
|
elif mode == "debug":
|
||||||
pass
|
# Enable Jumbo build by default in debug mode for faster build.
|
||||||
|
# https://chromium.googlesource.com/chromium/src/+/master/docs/jumbo.md
|
||||||
|
out += ["use_jumbo_build=true"]
|
||||||
else:
|
else:
|
||||||
print "Bad mode {}. Use 'release' or 'debug' (default)" % mode
|
print "Bad mode {}. Use 'release' or 'debug' (default)" % mode
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue