From 2786737417810c0a4f0b70ac80a9c298486de355 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 27 Aug 2012 22:08:06 +0200 Subject: [PATCH] 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. --- common.gypi | 3 +++ 1 file changed, 3 insertions(+) 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"', {