[libc-commits] [libc] ba5b137 - [libc][NFC] Add spec files as dependencies of integration test.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Wed Sep 9 10:23:00 PDT 2020


Author: Siva Chandra Reddy
Date: 2020-09-09T10:22:27-07:00
New Revision: ba5b1371ecc575337a95e9a9fc2b8951dae73aab

URL: https://github.com/llvm/llvm-project/commit/ba5b1371ecc575337a95e9a9fc2b8951dae73aab
DIFF: https://github.com/llvm/llvm-project/commit/ba5b1371ecc575337a95e9a9fc2b8951dae73aab.diff

LOG: [libc][NFC] Add spec files as dependencies of integration test.

Added: 
    

Modified: 
    libc/test/src/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/test/src/CMakeLists.txt b/libc/test/src/CMakeLists.txt
index e6390fc7a1d6..aa606ae630bc 100644
--- a/libc/test/src/CMakeLists.txt
+++ b/libc/test/src/CMakeLists.txt
@@ -22,6 +22,8 @@ endforeach()
 list(REMOVE_ITEM entrypoints_name_list "__assert_fail" "__errno_location")
 list(TRANSFORM entrypoints_name_list PREPEND "-e=")
 
+file(GLOB spec_files ${LIBC_SOURCE_DIR}/spec/*.td)
+
 # Generate integration test souce code.
 add_custom_command(
   OUTPUT ${public_test}
@@ -30,7 +32,7 @@ add_custom_command(
           -I ${LIBC_SOURCE_DIR}
           ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td
 
-  DEPENDS ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td
+  DEPENDS ${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/api.td ${spec_files}
           libc-prototype-testgen ${TARGET_PUBLIC_HEADERS}
           llvmlibc llvmlibm
 )


        


More information about the libc-commits mailing list