Skip to content

Commit

Permalink
[libc] Enable integration tests when built with gcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Siva Chandra Reddy committed Mar 13, 2023
1 parent 5b1ad43 commit 2869d31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions libc/test/CMakeLists.txt
Expand Up @@ -25,8 +25,8 @@ if(NOT LLVM_LIBC_FULL_BUILD)
return()
endif()

if(NOT (${LIBC_TARGET_OS} STREQUAL "linux") OR CMAKE_COMPILER_IS_GNUCXX)
# Integration tests are currently only available for clang on linux.
if(NOT ${LIBC_TARGET_OS} STREQUAL "linux")
# Integration tests are currently only available for linux.
return()
endif()
add_subdirectory(integration)
4 changes: 1 addition & 3 deletions libc/test/src/CMakeLists.txt
Expand Up @@ -60,14 +60,12 @@ if(${LIBC_TARGET_OS} STREQUAL "linux")
add_subdirectory(pthread)
endif()

if(LLVM_RUNTIMES_BUILD OR LIBC_HDRGEN_EXE OR CMAKE_COMPILER_IS_GNUCXX)
if(LLVM_RUNTIMES_BUILD OR LIBC_HDRGEN_EXE)
# 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 different 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()

Expand Down

0 comments on commit 2869d31

Please sign in to comment.