disable new ABI (can't catch ios_base::failure with new ABI)

This commit is contained in:
Martchus 2015-12-15 23:33:24 +01:00
parent 8feb7e1540
commit 149e96f43b
2 changed files with 8 additions and 0 deletions

View File

@ -72,6 +72,11 @@ if(MINGW)
enable_language(RC)
endif(MINGW)
# disable new ABI (can't catch ios_base::failure with new ABI)
add_definitions(
-D_GLIBCXX_USE_CXX11_ABI=0
)
# executable and linking
add_executable(${META_PROJECT_NAME} ${HEADER_FILES} ${SRC_FILES} ${RES_FILES} ${WINDOWS_ICON_PATH})
target_link_libraries(${META_PROJECT_NAME} c++utilities)

View File

@ -7,6 +7,9 @@ RCC_DIR = ./res
QMAKE_CXXFLAGS += -std=c++11
QMAKE_LFLAGS += -std=c++11
# disable new ABI (can't catch ios_base::failure with new ABI)
DEFINES += _GLIBCXX_USE_CXX11_ABI=0
# variables to check target architecture
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
win32-g++-32:QMAKE_TARGET.arch = x86