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
85 lines
3.1 KiB
CMake
85 lines
3.1 KiB
CMake
set(ASAN_ABI_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|
set(ASAN_ABI_TESTSUITES)
|
|
|
|
macro(get_bits_for_arch arch bits)
|
|
if (${arch} MATCHES "arm64|x86_64")
|
|
set(${bits} 64)
|
|
else()
|
|
message(FATAL_ERROR "Unknown target architecture: ${arch}")
|
|
endif()
|
|
endmacro()
|
|
|
|
set(ASAN_ABI_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS} asan_abi)
|
|
|
|
set(ASAN_ABI_TEST_ARCH ${ASAN_ABI_SUPPORTED_ARCH})
|
|
if(APPLE)
|
|
darwin_filter_host_archs(ASAN_ABI_SUPPORTED_ARCH ASAN_ABI_TEST_ARCH)
|
|
endif()
|
|
|
|
foreach(arch ${ASAN_ABI_TEST_ARCH})
|
|
set(ASAN_ABI_TEST_TARGET_ARCH ${arch})
|
|
set(ASAN_ABI_TEST_APPLE_PLATFORM "osx")
|
|
set(ASAN_ABI_TEST_MIN_DEPLOYMENT_TARGET_FLAG "${DARWIN_osx_MIN_VER_FLAG}")
|
|
set(ASAN_ABI_TEST_APPLE_TARGET_IS_HOST ON)
|
|
pythonize_bool(ASAN_ABI_TEST_APPLE_TARGET_IS_HOST)
|
|
string(TOLOWER "-${arch}-${OS_NAME}" ASAN_ABI_TEST_CONFIG_SUFFIX)
|
|
get_bits_for_arch(${arch} ASAN_ABI_TEST_BITS)
|
|
get_test_cc_for_arch(${arch} ASAN_ABI_TEST_TARGET_CC ASAN_ABI_TEST_TARGET_CFLAGS)
|
|
|
|
string(TOUPPER ${arch} ARCH_UPPER_CASE)
|
|
set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config)
|
|
|
|
list(APPEND ASAN_ABI_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
|
|
configure_lit_site_cfg(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py
|
|
)
|
|
endforeach()
|
|
|
|
if(APPLE)
|
|
set(ASAN_ABI_TEST_TARGET_CC ${COMPILER_RT_TEST_COMPILER})
|
|
set(ASAN_ABI_TEST_APPLE_PLATFORMS ${SANITIZER_COMMON_SUPPORTED_OS})
|
|
|
|
foreach(platform ${ASAN_ABI_TEST_APPLE_PLATFORMS})
|
|
if ("${platform}" STREQUAL "osx")
|
|
# Skip macOS because it's handled by the code above that builds tests for the host machine.
|
|
continue()
|
|
endif()
|
|
list_intersect(
|
|
ASAN_ABI_TEST_${platform}_ARCHS
|
|
ASAN_ABI_SUPPORTED_ARCH
|
|
DARWIN_${platform}_ARCHS
|
|
)
|
|
foreach(arch ${ASAN_ABI_TEST_${platform}_ARCHS})
|
|
get_test_cflags_for_apple_platform(
|
|
"${platform}"
|
|
"${arch}"
|
|
ASAN_ABI_TEST_TARGET_CFLAGS
|
|
)
|
|
string(TOUPPER "${arch}" ARCH_UPPER_CASE)
|
|
get_capitalized_apple_platform("${platform}" PLATFORM_CAPITALIZED)
|
|
set(CONFIG_NAME "${PLATFORM_CAPITALIZED}${ARCH_UPPER_CASE}Config")
|
|
set(ASAN_ABI_TEST_CONFIG_SUFFIX "-${arch}-${platform}")
|
|
set(ASAN_ABI_TEST_APPLE_PLATFORM "${platform}")
|
|
set(ASAN_ABI_TEST_TARGET_ARCH "${arch}")
|
|
set(ASAN_ABI_TEST_MIN_DEPLOYMENT_TARGET_FLAG "${DARWIN_${platform}_MIN_VER_FLAG}")
|
|
set(ASAN_ABI_TEST_APPLE_TARGET_IS_HOST OFF)
|
|
pythonize_bool(ASAN_ABI_TEST_APPLE_TARGET_IS_HOST)
|
|
get_bits_for_arch(${arch} ASAN_ABI_TEST_BITS)
|
|
configure_lit_site_cfg(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py
|
|
)
|
|
add_lit_testsuite(check-asan-abi-${platform}-${arch} "AddressSanitizerABI ${platform} ${arch} tests"
|
|
${ASAN_ABI_TESTSUITES}
|
|
EXCLUDE_FROM_CHECK_ALL
|
|
DEPENDS ${ASAN_ABI_TEST_DEPS})
|
|
endforeach()
|
|
endforeach()
|
|
endif()
|
|
|
|
add_lit_testsuite(check-asan-abi "Running the AddressSanitizerABI tests"
|
|
${ASAN_ABI_TESTSUITES}
|
|
${exclude_from_check_all}
|
|
DEPENDS ${ASAN_ABI_TEST_DEPS})
|