diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-27 00:30:49 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-03-29 11:51:41 +0400 |
commit | b55c9d68aa713e75ff5077cd425cbaafde010b92 (patch) | |
tree | 0dba3e7197ef32ded58e984dc41043e042677343 /configure | |
parent | 6d15b163b090f7dd218843fdca55f874da5daead (diff) | |
download | node-b55c9d68aa713e75ff5077cd425cbaafde010b92.tar.gz |
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-x | configure | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) |