summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-07-06 14:59:15 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-07-06 16:53:07 +0200
commit9b3de60d3537df657e75887436a5b1df5ed80c2d (patch)
tree9effad631286cceb485a77d665ae69676af6d90f /configure
parent588040d20d87adc1dced78a3c7243b0a27ae8ec5 (diff)
downloadnode-9b3de60d3537df657e75887436a5b1df5ed80c2d.tar.gz
build: remove --unsafe-optimizations flag
The previous commit removes our patch that builds V8 at -O2 rather than -O3 so there is not much point in keeping the configure switch around. The reason it did so was to work around an assortment of compiler and linker bugs. In particular, certain combinations of g++ and binutils generate bad or no code when -ffunction-sections or -finline-functions is enabled (which -O3 implicitly does.) It was quite the problem back in the day because everyone and his dog built from source. Now that we have prebuilt binaries and packages available, there is no longer a pressing need to be so accommodating. If you experience spurious (or possibly not so spurious) segmentation faults after this commit, you need to upgrade your compiler/linker toolchain.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 0 insertions, 8 deletions
diff --git a/configure b/configure
index 51217209d..abb907081 100755
--- a/configure
+++ b/configure
@@ -255,12 +255,6 @@ parser.add_option("--ninja",
dest="use_ninja",
help="Generate files for the ninja build system")
-# Using --unsafe-optimizations voids your warranty.
-parser.add_option("--unsafe-optimizations",
- action="store_true",
- dest="unsafe_optimizations",
- help=optparse.SUPPRESS_HELP)
-
parser.add_option("--xcode",
action="store_true",
dest="use_xcode",
@@ -442,8 +436,6 @@ def configure_node(o):
o['variables']['v8_no_strict_aliasing'] = 1 # work around compiler bugs
o['variables']['node_prefix'] = os.path.expanduser(options.prefix or '')
o['variables']['node_install_npm'] = b(not options.without_npm)
- 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()