From 84590f3fe9507887cebdcc11b3d1bc93180dc5a7 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 27 Aug 2012 22:06:34 +0200 Subject: [PATCH] build: fix -fno-tree-vrp heuristic -fno-tree-vrp is a gcc only switch. Don't enable it when compiling with clang, it will only complain about -fno-tree-vrp being ignored. --- common.gypi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index b2a9bee275..aad7e2f400 100644 --- a/common.gypi +++ b/common.gypi @@ -66,7 +66,7 @@ }, { 'cflags!': [ '-ffunction-sections', '-fdata-sections' ], }], - ['clang==1 or gcc_version >= 40', { + ['clang == 0 and gcc_version >= 40', { 'cflags': [ '-fno-tree-vrp' ], }], ],