From 417c18e83472373ea1829f451b0bc87b17565d14 Mon Sep 17 00:00:00 2001 From: Refael Ackermann Date: Fri, 29 Mar 2019 03:38:12 -0400 Subject: build,v8: sync V8 gypfiles with 7.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ujjwal Sharma Co-authored-by: Michaël Zasso PR-URL: https://github.com/nodejs/node/pull/27375 Reviewed-By: Michaël Zasso Reviewed-By: Ujjwal Sharma Reviewed-By: Refael Ackermann Reviewed-By: Matteo Collina Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott --- configure.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.py') 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 -- cgit v1.2.3