From 2ee59cee1b6130359b127c4d74d3d10bd01853a9 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 9 Nov 2011 21:48:28 -0800 Subject: GCC: Guard some gcc flags so they're used when available and needed. --- SConstruct | 1 + 1 file changed, 1 insertion(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 06e1c3f16..89761a4f1 100755 --- a/SConstruct +++ b/SConstruct @@ -487,6 +487,7 @@ if main['GCC']: # Note CCVERSION doesn't work here because it is run with the CC # before we override it from the command line gcc_version = readCommand([main['CXX'], '-dumpversion'], exception=False) + main['GCC_VERSION'] = gcc_version if not compareVersions(gcc_version, '4.4.1') or \ not compareVersions(gcc_version, '4.4.2'): print 'Info: Tree vectorizer in GCC 4.4.1 & 4.4.2 is buggy, disabling.' -- cgit v1.2.3