File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
MultiSource/Applications/obsequi Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,21 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TEST_SUITE_EXTRA_CXX_FLAGS}")
155
155
set (CMAKE_EXE_LINKER_FLAGS
156
156
"${CMAKE_EXE_LINKER_FLAGS} ${TEST_SUITE_EXTRA_EXE_LINKER_FLAGS} " )
157
157
158
+ # This is either directly the C++ ABI library or the full C++ library
159
+ # which pulls in the ABI transitively.
160
+ set (TEST_SUITE_CXX_ABI "default" CACHE STRING "Specify C++ ABI library to use." )
161
+ set (CXXABIS "none default libstdc++ libsupc++ libc++ libc++abi" )
162
+ set_property (CACHE TEST_SUITE_CXX_ABI PROPERTY STRINGS "${CXXABIS} " )
163
+ if (TEST_SUITE_CXX_ABI STREQUAL "default" )
164
+ if (APPLE OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD|Fuchsia" )
165
+ set (TEST_SUITE_CXX_ABI_LIBNAME "c++abi" )
166
+ else ()
167
+ set (TEST_SUITE_CXX_ABI_LIBNAME "supc++" )
168
+ endif ()
169
+ else ()
170
+ STRING (REGEX REPLACE "^lib" "" TEST_SUITE_CXX_ABI_LIBNAME ${TEST_SUITE_CXX_ABI} )
171
+ endif ()
172
+
158
173
include (TestSuite )
159
174
include (SingleMultiSource )
160
175
find_package (TCL )
Original file line number Diff line number Diff line change 6
6
list (APPEND CPPFLAGS -DHASHCODEBITS=23 )
7
7
endif ()
8
8
if (NOT "${ARCH} " STREQUAL "PowerPC" )
9
- list (APPEND LDFLAGS -lsupc++ )
9
+ list (APPEND LDFLAGS -l${TEST_SUITE_CXX_ABI_LIBNAME} )
10
10
endif ()
11
11
set (RUN_OPTIONS < input )
12
12
llvm_multisource (Obsequi )
You can’t perform that action at this time.
0 commit comments