Permalink
Browse files

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.
  • Loading branch information...
1 parent 84590f3 commit 2786737417810c0a4f0b70ac80a9c298486de355 @bnoordhuis bnoordhuis committed Aug 27, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 common.gypi
View
@@ -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"', {

0 comments on commit 2786737

Please sign in to comment.