[libc-commits] [libc] 8350494 - [libc] disable integration tests when using gcc
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Thu Mar 2 13:40:00 PST 2023
Author: Michael Jones
Date: 2023-03-02T13:39:55-08:00
New Revision: 8350494a612b787286343cf9592fddf5bd5adc36
URL: https://github.com/llvm/llvm-project/commit/8350494a612b787286343cf9592fddf5bd5adc36
DIFF: https://github.com/llvm/llvm-project/commit/8350494a612b787286343cf9592fddf5bd5adc36.diff
LOG: [libc] disable integration tests when using gcc
The integration tests were failing to build under GCC due to missing
compile options for using LLVM's libc++ and compiler-rt.
This should unblock https://github.com/llvm/llvm-project/issues/60467
Reviewed By: sivachandra, lntue
Differential Revision: https://reviews.llvm.org/D145128
Added:
Modified:
libc/test/CMakeLists.txt
libc/test/src/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/test/CMakeLists.txt b/libc/test/CMakeLists.txt
index b9b76b602a856..c6c470c6d0411 100644
--- a/libc/test/CMakeLists.txt
+++ b/libc/test/CMakeLists.txt
@@ -25,8 +25,8 @@ if(NOT LLVM_LIBC_FULL_BUILD)
return()
endif()
-if(NOT (${LIBC_TARGET_OS} STREQUAL "linux"))
- # Integration tests are currently only available for linux.
+if(NOT (${LIBC_TARGET_OS} STREQUAL "linux") OR CMAKE_COMPILER_IS_GNUCXX)
+ # Integration tests are currently only available for clang on linux.
return()
endif()
add_subdirectory(integration)
diff --git a/libc/test/src/CMakeLists.txt b/libc/test/src/CMakeLists.txt
index 87daefb7476ca..a9b788ca4e70a 100644
--- a/libc/test/src/CMakeLists.txt
+++ b/libc/test/src/CMakeLists.txt
@@ -60,12 +60,14 @@ if(${LIBC_TARGET_OS} STREQUAL "linux")
add_subdirectory(pthread)
endif()
-if(LLVM_RUNTIMES_BUILD OR LIBC_HDRGEN_EXE)
+if(LLVM_RUNTIMES_BUILD OR LIBC_HDRGEN_EXE OR CMAKE_COMPILER_IS_GNUCXX)
# The public API test below uses tablegen to generate the test
# source file. Since tablegen is not available during a runtimes
# build, we will skip the test.
# If a
diff erent libc-hdrgen binary is being used, then also we
# skip the api-test as we cannot generate the test source file.
+ # Additionally, this is an integration test and those only work with clang
+ # for the moment.
return()
endif()
More information about the libc-commits
mailing list