Skip to content

Commit

Permalink
fix CONFIG+=fast
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Dec 8, 2017
1 parent 009be79 commit b99e7f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
10 changes: 8 additions & 2 deletions INSTALL_OSX.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ config.pri:
cat > config.pri << EOF
boost: INCLUDEPATH += /opt/local/include
boost: LIBS += -L/opt/local/lib -lboost_serialization-mt
openmp {
macx:openmp {
QMAKE_CC=/opt/local/bin/clang-mp-5.0
QMAKE_CXX=/opt/local/bin/clang++-mp-5.0
INCLUDEPATH += /opt/local/include/libomp
LIBS += -L/opt/local/lib/libomp -liomp5
cc_setting.name = CC
Expand Down Expand Up @@ -246,7 +249,10 @@ boost: LIBS += -L/usr/local/lib -lboost_serialization-mt -lboost_thread-mt -lboo
expat: PKGCONFIG -= expat
expat: INCLUDEPATH += /usr/local/opt/expat/include
expat: LIBS += -L/usr/local/opt/expat/lib -lexpat
openmp {
macx:openmp {
QMAKE_CC=/usr/local/opt/llvm/bin/clang
QMAKE_CXX=/usr/local/opt/llvm/bin/clang++
LIBS += -L/usr/local/opt/llvm/lib -liomp5
cc_setting.name = CC
cc_setting.value = /usr/local/opt/llvm/bin/clang
Expand Down
14 changes: 10 additions & 4 deletions global.pri
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@ run-without-python {
QMAKE_LFLAGS_RELEASE =
}
CONFIG(fast) {
QMAKE_CFLAGS += -Ofast
QMAKE_CFLAGS -= -O2 -O3
QMAKE_CXXFLAGS += -Ofast
QMAKE_CXXFLAGS -= -O2 -O3
QMAKE_CFLAGS_RELEASE += -Ofast
QMAKE_CFLAGS_RELEASE -= -O -O2 -O3
QMAKE_CXXFLAGS_RELEASE += -Ofast
QMAKE_CXXFLAGS_RELEASE -= -O -O2 -O3
QMAKE_CFLAGS_DEBUG += -Ofast
QMAKE_CFLAGS_DEBUG -= -O -O2 -O3
QMAKE_CXXFLAGS_DEBUG += -Ofast
QMAKE_CXXFLAGS_DEBUG -= -O -O2 -O3
QMAKE_CXXFLAGS -= -O -O2 -O3
QMAKE_CFLAGS -= -O -O2 -O3
}
}

Expand Down

0 comments on commit b99e7f6

Please sign in to comment.