summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-03-29 03:38:12 -0400
committerRefael Ackermann <refack@gmail.com>2019-06-01 09:55:36 -0400
commit417c18e83472373ea1829f451b0bc87b17565d14 (patch)
tree3cb1c3812d0a8d25043a3e36832b15ff230dd42b /configure.py
parente3cd79ef8edfd60abbf1c88e050a0a215d3672e8 (diff)
downloadandroid-node-v8-417c18e83472373ea1829f451b0bc87b17565d14.tar.gz
android-node-v8-417c18e83472373ea1829f451b0bc87b17565d14.tar.bz2
android-node-v8-417c18e83472373ea1829f451b0bc87b17565d14.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> 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