Monday, November 22, 2010

compiler options in QtCreator

Selecting the release build over the default debug build will enable the -O2 compiler option but under Projects settings you can only add make options. To add more compiler options such as -march=core2 you can add a line to your project file:

QMAKE_CXXFLAGS += -march=core2

No comments:

Post a Comment