File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -416,13 +416,16 @@ if (LIBCXXABI_HAS_EXTERNAL_THREAD_API)
416
416
endif ()
417
417
endif ()
418
418
419
- set (LIBCXXABI_HAS_UNDEFINED_SYMBOLS ((NOT LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS)
420
- OR (LIBCXXABI_BUILD_EXTERNAL_THREAD_LIBRARY AND LIBCXXABI_ENABLE_SHARED)))
419
+ set (LIBCXXABI_HAS_UNDEFINED_SYMBOLS OFF )
420
+ if ((NOT LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS)
421
+ OR (LIBCXXABI_BUILD_EXTERNAL_THREAD_LIBRARY AND LIBCXXABI_ENABLE_SHARED))
422
+ set (LIBCXXABI_HAS_UNDEFINED_SYMBOLS ON )
423
+ endif ()
421
424
422
425
if (LIBCXXABI_HAS_UNDEFINED_SYMBOLS)
423
426
# Need to allow unresolved symbols if this is to work with shared library builds
424
427
if (APPLE )
425
- add_link_flags( "-undefined dynamic_lookup" )
428
+ list ( APPEND LIBCXXABI_LINK_FLAGS "-undefined dynamic_lookup" )
426
429
else ()
427
430
# Relax this restriction from HandleLLVMOptions
428
431
string (REPLACE "-Wl,-z,defs" "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} " )
You can’t perform that action at this time.
0 commit comments