Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-10-25 02:44:37 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-10-25 03:06:00 +0400
commit28e6403a56bcb5af4b4127c3e2fe87d2113ab3b7 (patch)
tree26ae47a48c0f702011cc813c54832a331ecaeb09 /configure
parentde0303d3ad530d6a4f9b48fb5ac46795cfe4663f (diff)
build: add --unsafe-optimizations configure switch
Turns on -O3 and other optimizations that may produce buggy code with some toolchains. Use at your own risk.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index cfd11aa5aec..7211682ac11 100755
--- a/configure
+++ b/configure
@@ -176,6 +176,12 @@ parser.add_option("--with-arm-float-abi",
help="Specifies which floating-point ABI to use. Valid values are: "
"soft, softfp, hard")
+# Using --unsafe-optimizations voids your warranty.
+parser.add_option("--unsafe-optimizations",
+ action="store_true",
+ dest="unsafe_optimizations",
+ help=optparse.SUPPRESS_HELP)
+
(options, args) = parser.parse_args()
@@ -345,6 +351,8 @@ def configure_node(o):
o['variables']['node_prefix'] = os.path.expanduser(options.prefix or '')
o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['node_install_waf'] = b(not options.without_waf)
+ o['variables']['node_unsafe_optimizations'] = (
+ 1 if options.unsafe_optimizations else 0)
o['default_configuration'] = 'Debug' if options.debug else 'Release'
host_arch = host_arch_win() if os.name == 'nt' else host_arch_cc()