Changeset View
Changeset View
Standalone View
Standalone View
clang/tools/libclang/CMakeLists.txt
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | else() | ||||
if(LLVM_ENABLE_MODULES AND NOT WIN32) | if(LLVM_ENABLE_MODULES AND NOT WIN32) | ||||
target_compile_options(libclang PRIVATE | target_compile_options(libclang PRIVATE | ||||
"-fmodules-ignore-macro=_CINDEX_LIB_" | "-fmodules-ignore-macro=_CINDEX_LIB_" | ||||
) | ) | ||||
endif() | endif() | ||||
endif() | endif() | ||||
if (USE_VERSION_SCRIPT) | if (USE_VERSION_SCRIPT) | ||||
target_link_options(libclang PRIVATE "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libclang.map") | target_link_options(libclang PRIVATE "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/libclang.map") | ||||
# The Solaris 11.4 linker supports a subset of GNU ld version scripts, | |||||
# but requires a special option to enable it. | |||||
if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS") | |||||
target_link_options(libclang PRIVATE "-Wl,-z,gnu-version-script-compat") | |||||
endif() | |||||
# Ensure that libclang.so gets rebuilt when the linker script changes. | # Ensure that libclang.so gets rebuilt when the linker script changes. | ||||
set_property(SOURCE ARCMigrate.cpp APPEND PROPERTY | set_property(SOURCE ARCMigrate.cpp APPEND PROPERTY | ||||
OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/libclang.map) | OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/libclang.map) | ||||
# The SOVERSION should be updated only if a change is made to the libclang | # The SOVERSION should be updated only if a change is made to the libclang | ||||
# ABI, and when it is updated, it should be updated to the current | # ABI, and when it is updated, it should be updated to the current | ||||
# LLVM_VERSION_MAJOR. | # LLVM_VERSION_MAJOR. | ||||
set_target_properties(libclang PROPERTIES | set_target_properties(libclang PROPERTIES | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |