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
48 lines
1.8 KiB
Plaintext
48 lines
1.8 KiB
Plaintext
# This testing configuration handles running the test suite against LLVM's
|
|
# libc++ using adb on Android.
|
|
|
|
lit_config.load_config(config, '@CMAKE_CURRENT_BINARY_DIR@/cmake-bridge.cfg')
|
|
|
|
import re
|
|
import site
|
|
|
|
site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
|
|
|
|
import libcxx.test.android
|
|
import libcxx.test.config
|
|
import libcxx.test.params
|
|
|
|
config.substitutions.append(('%{flags}',
|
|
'--sysroot @CMAKE_SYSROOT@' if '@CMAKE_SYSROOT@' else ''
|
|
))
|
|
|
|
compile_flags = '-nostdinc++ -I %{target-include-dir} -I %{include-dir} -I %{libcxx-dir}/test/support'
|
|
if re.match(r'i686-linux-android(21|22|23)$', config.target_triple):
|
|
# 32-bit x86 Android has a bug where the stack is sometimes misaligned.
|
|
# The problem appears limited to versions before Android N (API 24) and only
|
|
# __attribute__((constructor)) functions. Compile with -mstackrealign to
|
|
# work around the bug.
|
|
# TODO: Consider automatically doing something like this in Clang itself (LIBCXX-ANDROID-FIXME)
|
|
# See https://github.com/android/ndk/issues/693.
|
|
compile_flags += ' -mstackrealign'
|
|
config.substitutions.append(('%{compile_flags}', compile_flags))
|
|
|
|
# The platform library is called "libc++.so" and the NDK library is called "libc++_shared.so".
|
|
# Use LD_LIBRARY_PATH to find the libcxx shared object because older Bionic dynamic loaders
|
|
# don't support rpath lookup.
|
|
config.substitutions.append(('%{link_flags}',
|
|
'-nostdlib++ -L %{lib-dir} -l@LIBCXX_SHARED_OUTPUT_NAME@'
|
|
))
|
|
config.substitutions.append(('%{exec}',
|
|
'%{executor}' +
|
|
' --job-limit-socket ' + libcxx.test.android.adb_job_limit_socket() +
|
|
' --prepend-path-env LD_LIBRARY_PATH /data/local/tmp/libc++ --execdir %{temp} -- '
|
|
))
|
|
|
|
libcxx.test.config.configure(
|
|
libcxx.test.params.DEFAULT_PARAMETERS,
|
|
libcxx.test.features.DEFAULT_FEATURES,
|
|
config,
|
|
lit_config
|
|
)
|