[qet] [1516] Now checks whether g++ option -fno-ipa-sra is available before adding it.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1516
Author:   xavier
Date:     2012-02-20 21:24:03 +0100 (Mon, 20 Feb 2012)
Log Message:
-----------
Now checks whether g++ option -fno-ipa-sra is available before adding it.

Modified Paths:
--------------
    branches/0.3/qelectrotech.pro

Modified: branches/0.3/qelectrotech.pro
===================================================================
--- branches/0.3/qelectrotech.pro	2012-02-20 15:09:15 UTC (rev 1515)
+++ branches/0.3/qelectrotech.pro	2012-02-20 20:24:03 UTC (rev 1516)
@@ -157,6 +157,10 @@
 }
 
 # Compilers-specific options
-*-g++* {
-	QMAKE_CXXFLAGS += -fno-ipa-sra
+unix {
+	*-g++* {
+		system(g++ -v --help 2>&1 | grep -q fipa-sra) {
+			QMAKE_CXXFLAGS += -fno-ipa-sra
+		}
+	}
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/