Skip to content

Commit

Permalink
build: compile with -fno-tree-sink if gcc <= 4.4
Browse files Browse the repository at this point in the history
Fixes a 'pure virtual method called' run-time error with some versions of gcc
on some platforms, notably ARM.
  • Loading branch information
bnoordhuis committed Aug 27, 2012
1 parent 84590f3 commit 2786737
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -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"', {
Expand Down

0 comments on commit 2786737

Please sign in to comment.