Skip to content

Commit

Permalink
OS X|qmake: Added build option "deng_c++11"
Browse files Browse the repository at this point in the history
Enabling C++11 in the clang build.
  • Loading branch information
skyjake committed Apr 10, 2014
1 parent d25f3f1 commit b7fa8db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doomsday/config_macx.pri
Expand Up @@ -87,6 +87,14 @@ archs = "Architectures:"
x86_64: archs += intel64
echo($$archs)

deng_c++11 {
echo(C++11 enabled (using libc++).)
QMAKE_OBJECTIVE_CFLAGS += -stdlib=libc++
QMAKE_CXXFLAGS += -std=c++11 -stdlib=libc++
QMAKE_CXXFLAGS_WARN_ON += -Wno-deprecated-register
QMAKE_LFLAGS += -stdlib=libc++
}

# Macros ---------------------------------------------------------------------

defineTest(useFramework) {
Expand Down

0 comments on commit b7fa8db

Please sign in to comment.