summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-08-27 22:08:06 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-08-27 22:09:23 +0200
commit2786737417810c0a4f0b70ac80a9c298486de355 (patch)
tree047f7960590a72575bd568d11690a4b10eb81bab /common.gypi
parent84590f3fe9507887cebdcc11b3d1bc93180dc5a7 (diff)
downloadnode-new-2786737417810c0a4f0b70ac80a9c298486de355.tar.gz
build: compile with -fno-tree-sink if gcc <= 4.4
Fixes a 'pure virtual method called' run-time error with some versions of gcc on some platforms, notably ARM.
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.gypi b/common.gypi
index aad7e2f400..b26d2f3f1c 100644
--- a/common.gypi
+++ b/common.gypi
@@ -69,6 +69,9 @@
['clang == 0 and gcc_version >= 40', {
'cflags': [ '-fno-tree-vrp' ],
}],
+ ['clang == 0 and gcc_version <= 44', {
+ 'cflags': [ '-fno-tree-sink' ],
+ }],
],
}],
['OS=="solaris"', {