mirror of
https://github.com/denoland/deno.git
synced 2025-01-06 14:26:02 -05:00
Enable jumbo build in release. (#1362)
This commit is contained in:
parent
91a41ca124
commit
0481d6c2c0
2 changed files with 5 additions and 3 deletions
4
.gn
4
.gn
|
@ -34,6 +34,10 @@ default_args = {
|
||||||
# Works in other configurations.
|
# Works in other configurations.
|
||||||
is_component_build = false
|
is_component_build = false
|
||||||
|
|
||||||
|
# Enable Jumbo build for a faster build.
|
||||||
|
# https://chromium.googlesource.com/chromium/src/+/master/docs/jumbo.md
|
||||||
|
use_jumbo_build = true
|
||||||
|
|
||||||
symbol_level = 1
|
symbol_level = 1
|
||||||
treat_warnings_as_errors = true
|
treat_warnings_as_errors = true
|
||||||
rust_treat_warnings_as_errors = true
|
rust_treat_warnings_as_errors = true
|
||||||
|
|
|
@ -107,9 +107,7 @@ 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":
|
||||||
# Enable Jumbo build by default in debug mode for faster build.
|
out += ["is_debug=true"]
|
||||||
# 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…
Reference in a new issue