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-07-19 01:26:23 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-07-19 01:26:00 +0400
commit98b1ce91f6ab65b88b759e7ada18133b9257b203 (patch)
treeaf3372225ea39a3a37f5dff33f54b3fe66baa66d /configure
parentbeb7425c186c405b7fbe4332435a9b552753b561 (diff)
build: fix mksnapshot crash on sunos
Unconditionally compile V8 with -fno-strict-aliasing on all platforms. gcc 4.5.2 on sunos generates bad code when -fstrict-aliasing is enabled, which undoubtedly means that there are more buggy versions of gcc out there. -fstrict-aliasing does not give a significant performance boost so let's just disable it. Fixes #3736.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 6c724111a8e..48d65385e93 100755
--- a/configure
+++ b/configure
@@ -265,6 +265,8 @@ def compiler_version():
def configure_node(o):
+ # TODO add gdb
+ 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_install_waf'] = b(not options.without_waf)