[Qt-creator] Cannot override default CXXFLAGS
Charles N Burns
charlesnburns at gmail.com
Sat Feb 7 18:00:52 CET 2009
Thank you for the reply. Unfortunately, adding "-= (flags)" seems to
have no effect.
I tried the following:
* Build -> Clean All then Build -> Rebuild All
* Closed/reopened Qt Creator and did previous step
* Compiled both debug and release versions.
* Threw an exception in main()
Attached is a screenshot showing the .pro and the actual compile flags used.
Best regards,
--Charles Burns
On Sat, Feb 7, 2009 at 3:38 AM, Andre Poenitz
<andre.poenitz at mathematik.tu-chemnitz.de> wrote:
> On Fri, Feb 06, 2009 at 10:34:21PM -0700, Charles N Burns wrote:
>> 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 [...]
>
> Try
>
> QMAKE_CXXFLAGS -= -frtti -fexceptions
> QMAKE_CXXFLAGS += -fno-rtti -fno-exceptions
>
> Andre'
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
--
"Be who you are and say what you feel, because those who mind don't
matter and those who matter don't mind." --Dr. Seuss
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qtcreator-cxxflags.png
Type: image/png
Size: 23910 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090207/a5ec775d/attachment.png
More information about the Qt-creator-old
mailing list