diff --git a/libcxx/cmake/caches/AArch64.cmake b/libcxx/cmake/caches/AArch64.cmake new file mode 100644 --- /dev/null +++ b/libcxx/cmake/caches/AArch64.cmake @@ -0,0 +1,3 @@ +set(LIBCXXABI_USE_LLVM_UNWINDER ON CACHE BOOL "") +set(CMAKE_C_FLAGS "-mcpu=cortex-a57" CACHE STRING "") +set(CMAKE_CXX_FLAGS "-mcpu=cortex-a57" CACHE STRING "") diff --git a/libcxx/utils/ci/buildkite-pipeline.yml b/libcxx/utils/ci/buildkite-pipeline.yml --- a/libcxx/utils/ci/buildkite-pipeline.yml +++ b/libcxx/utils/ci/buildkite-pipeline.yml @@ -322,3 +322,27 @@ automatic: - exit_status: -1 # Agent was lost limit: 2 + + - label: "AArch64" + command: "libcxx/utils/ci/run-buildbot aarch64" + artifact_paths: + - "**/test-results.xml" + agents: + queue: "libcxx-builders-linaro-arm" + arch: "aarch64" + retry: + automatic: + - exit_status: -1 # Agent was lost + limit: 2 + + - label: "AArch64 -fno-exceptions" + command: "libcxx/utils/ci/run-buildbot aarch64-noexceptions" + artifact_paths: + - "**/test-results.xml" + agents: + queue: "libcxx-builders-linaro-arm" + arch: "aarch64" + retry: + automatic: + - exit_status: -1 # Agent was lost + limit: 2 diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot --- a/libcxx/utils/ci/run-buildbot +++ b/libcxx/utils/ci/run-buildbot @@ -376,6 +376,18 @@ echo "+++ Running the libc++abi tests" ninja -C "${BUILD_DIR}/libcxxabi" check-cxxabi ;; +aarch64) + clean + generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/AArch64.cmake" + check-cxx-cxxabi +;; +aarch64-noexceptions) + clean + generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/AArch64.cmake" \ + -DLIBCXX_ENABLE_EXCEPTIONS=OFF \ + -DLIBCXXABI_ENABLE_EXCEPTIONS=OFF + check-cxx-cxxabi +;; *) echo "${BUILDER} is not a known configuration" exit 1