summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2014-03-27 00:30:49 +0400
committerFedor Indutny <fedor@indutny.com>2014-03-29 11:51:41 +0400
commitb55c9d68aa713e75ff5077cd425cbaafde010b92 (patch)
tree0dba3e7197ef32ded58e984dc41043e042677343 /configure
parent6d15b163b090f7dd218843fdca55f874da5daead (diff)
downloadandroid-node-v8-b55c9d68aa713e75ff5077cd425cbaafde010b92.tar.gz
android-node-v8-b55c9d68aa713e75ff5077cd425cbaafde010b92.tar.bz2
android-node-v8-b55c9d68aa713e75ff5077cd425cbaafde010b92.zip
configure: --v8-options option
Introduce a way to set some v8 flags at compile time, the values should be separated by comma.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index cfc28299f8..842daa94a3 100755
--- a/configure
+++ b/configure
@@ -204,6 +204,12 @@ parser.add_option('--tag',
dest='tag',
help='custom build tag')
+parser.add_option('--v8-options',
+ action='store',
+ dest='v8_options',
+ help='v8 options to pass, see `node --v8-options` for examples. '
+ 'The flags should be separated by a comma')
+
parser.add_option('--with-arm-float-abi',
action='store',
dest='arm_float_abi',
@@ -513,6 +519,12 @@ def configure_node(o):
else:
o['variables']['node_tag'] = ''
+ if options.v8_options:
+ opts = options.v8_options.split(',')
+ o['variables']['node_v8_options'] = '"' + '","'.join(opts) + '"'
+ else:
+ o['variables']['node_v8_options'] = ''
+
def configure_libz(o):
o['variables']['node_shared_zlib'] = b(options.shared_zlib)