summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-03-29 03:38:12 -0400
committerMichaël Zasso <targos@protonmail.com>2019-06-04 18:44:56 +0200
commit5101e4c2a2fd4f6b8b7e2f4920eb3605ecd35bb2 (patch)
treeb7602ad71653c1a9d0d82295103a68340a7a2d72 /configure.py
parent21bcfb67f6a78e1c47f166cd6c20b30a9feffbb1 (diff)
downloadandroid-node-v8-5101e4c2a2fd4f6b8b7e2f4920eb3605ecd35bb2.tar.gz
android-node-v8-5101e4c2a2fd4f6b8b7e2f4920eb3605ecd35bb2.tar.bz2
android-node-v8-5101e4c2a2fd4f6b8b7e2f4920eb3605ecd35bb2.zip
build,v8: sync V8 gypfiles with 7.5
Co-authored-by: Ujjwal Sharma <usharma1998@gmail.com> Co-authored-by: Michaël Zasso <targos@protonmail.com> Backport-PR-URL: https://github.com/nodejs/node/pull/28005 PR-URL: https://github.com/nodejs/node/pull/27375 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 15ea5687cf..38ff742e3a 100755
--- a/configure.py
+++ b/configure.py
@@ -615,6 +615,13 @@ def b(value):
else:
return 'false'
+def B(value):
+ """Returns 1 if value is truthy, 0 otherwise."""
+ if value:
+ return 1
+ else:
+ return 0
+
def pkg_config(pkg):
"""Run pkg-config on the specified package
@@ -1594,6 +1601,7 @@ configure_inspector(output)
# move everything else to target_defaults
variables = output['variables']
del output['variables']
+variables['is_debug'] = B(options.debug)
# make_global_settings for special FIPS linking
# should not be used to compile modules in node-gyp