Skip to content

Commit

Permalink
Add libc++ flags on OS X
Browse files Browse the repository at this point in the history
QT5 on OS X apparently does not add '-stdlib=libc++' to CXXFLAGS or
LFLAGS, so they must be added by us for compilation to succeed.
  • Loading branch information
Noctem committed Jan 28, 2015
1 parent 95c75bb commit 87c2722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions macxconf.pri
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ exists($$OUT_PWD/../conf.pri) {
}

LIBS += -framework Carbon -framework IOKit
QMAKE_CXXFLAGS += -stdlib=libc++
QMAKE_LFLAGS += -stdlib=libc++

document_icon.path = Contents/Resources
document_icon.files = mac/qBitTorrentDocument.icns
Expand Down

0 comments on commit 87c2722

Please sign in to comment.