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

experiment/meta_header
Martchus 7 years ago
parent fd52756e1d
commit 9115235976
  1. 5
      CMakeLists.txt
  2. 3
      general.pri

@ -111,6 +111,11 @@ if(MINGW)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
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_library(${META_PROJECT_NAME} SHARED ${HEADER_FILES} ${SRC_FILES} ${RES_FILES} ${WINDOWS_ICON_PATH})
set_target_properties(${META_PROJECT_NAME} PROPERTIES

@ -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

Loading…
Cancel
Save