[Qt-creator] Cannot override default CXXFLAGS
Charles N Burns
charlesnburns at gmail.com
Sat Feb 7 06:34:21 CET 2009
I cannot figure out how to override Qt Creator's CXXFLAGS setting. I
tried adding this to the .PRO:
QMAKE_CXXFLAGS += -fno-rtti -fno-exceptions
This does not work because the defaults include "-frtti -fexceptions"
and these appear after QMAKE_CXXFLAGS on the command line, so they
override the flags even when I specify them. The actual flags used
according to the compiler output are:
g++ -c -fno-rtti -fno-exceptions -O2 -frtti -fexceptions -mthreads
-Wall [...]
Using RC-1
More information about the Qt-creator-old
mailing list