I installed Qt for Mac and compile my Qt project after adding to the .Pro file
CONFIG(release, debug|release):QMAKE_CXXFLAGS += -O3 -fomit-frame-pointer
to optimize speed.
However, I always see that the command in which g ++ is executed includes -Os, which is optimized for size. I would like to remove it.
I tried several approaches, for example
CONFIG(release, debug|release):QMAKE_CFLAGS_RELEASE -= -Os
CONFIG(release, debug|release):QMAKE_CXXFLAGS -= -Os
and
CONFIG(release, debug|release):QMAKE_CXXFLAGS = -O3 -fomit-frame-pointer
CONFIG(release, debug|release):QMAKE_CFLAGS_RELEASE = -O3 -fomit-frame-pointer
(no +)
But nothing. -O ALWAYS appear.
How to change this?
I found the qmake.conf file in / usr / local / QT 4.5 / mkspecs. It contains the mac-g ++ file. Conf, but I can’t change it, and chmod does not work: chmod: mac-g ++. Conf: operation not allowed
Any ideas?
source
share