summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-08-13 15:04:03 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-08-13 15:33:27 +0200
commit100e163dda5ea0d16bb1c2f69e9ae75815978f12 (patch)
tree9bf59fd38bb3830232ac6105a8ecbadd181c1c62 /configure
parent9f26130a0eb87d88aa61ac08a90a0c309266342c (diff)
downloadnode-new-100e163dda5ea0d16bb1c2f69e9ae75815978f12.tar.gz
build: compile with -fno-tree-vrp when gcc >= 4.0
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 3b9c9a3821..530473058a 100755
--- a/configure
+++ b/configure
@@ -339,8 +339,13 @@ def configure_node(o):
o['variables']['v8_use_arm_eabi_hardfloat'] = b(hard_float)
o['variables']['armv7'] = 1 if is_arch_armv7() else 0
- # clang has always supported -fvisibility=hidden, right?
cc_version, is_clang = compiler_version()
+ o['variables']['clang'] = 1 if is_clang else 0
+
+ if not is_clang:
+ o['variables']['gcc_version'] = 10 * cc_version[0] + cc_version[1]
+
+ # clang has always supported -fvisibility=hidden, right?
if not is_clang and cc_version < (4,0,0):
o['variables']['visibility'] = ''