diff --git a/qelectrotech.pro b/qelectrotech.pro index d4b579d78..dfe368aff 100644 --- a/qelectrotech.pro +++ b/qelectrotech.pro @@ -164,3 +164,10 @@ unix { } } } +win32 { + *-g++* { + system(g++ -v --help 2>&1 | find \"fipa-sra\" >NUL) { + QMAKE_CXXFLAGS += -fno-ipa-sra + } + } +}