CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
72 lines
1.5 KiB
CMake
72 lines
1.5 KiB
CMake
set(LLVM_LINK_COMPONENTS
|
|
support
|
|
)
|
|
|
|
add_clang_executable(c-index-test
|
|
c-index-test.c
|
|
core_main.cpp
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
set_property(
|
|
SOURCE c-index-test.c
|
|
PROPERTY COMPILE_FLAGS "-std=gnu89"
|
|
)
|
|
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|
set_property(
|
|
SOURCE c-index-test.c
|
|
APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-c11-extensions"
|
|
)
|
|
endif()
|
|
endif()
|
|
|
|
if (LLVM_BUILD_STATIC)
|
|
target_link_libraries(c-index-test
|
|
PRIVATE
|
|
libclang_static
|
|
clangCodeGen
|
|
clangIndex
|
|
)
|
|
else()
|
|
target_link_libraries(c-index-test
|
|
PRIVATE
|
|
libclang
|
|
clangAST
|
|
clangBasic
|
|
clangDriver
|
|
clangFrontend
|
|
clangIndex
|
|
clangSerialization
|
|
clangUnifiedSymbolResolution
|
|
)
|
|
endif()
|
|
|
|
set_target_properties(c-index-test
|
|
PROPERTIES
|
|
LINKER_LANGUAGE CXX)
|
|
|
|
# If libxml2 is available, make it available for c-index-test.
|
|
if (CLANG_HAVE_LIBXML)
|
|
target_link_libraries(c-index-test PRIVATE LibXml2::LibXml2)
|
|
endif()
|
|
|
|
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
|
if(INTERNAL_INSTALL_PREFIX)
|
|
set(INSTALL_DESTINATION "${INTERNAL_INSTALL_PREFIX}/bin")
|
|
set_property(TARGET c-index-test APPEND PROPERTY INSTALL_RPATH
|
|
"@executable_path/../../lib")
|
|
else()
|
|
set(INSTALL_DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
|
endif()
|
|
|
|
install(TARGETS c-index-test
|
|
RUNTIME DESTINATION "${INSTALL_DESTINATION}"
|
|
COMPONENT c-index-test)
|
|
|
|
if (NOT LLVM_ENABLE_IDE)
|
|
add_llvm_install_targets(install-c-index-test
|
|
DEPENDS c-index-test
|
|
COMPONENT c-index-test)
|
|
endif()
|
|
endif()
|