[compiler-rt] r248852 - [CMake] [Darwin] [builtins] Make CMake re-generate if the builtin filter lists change.

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 16:21:07 PDT 2015


Author: cbieneman
Date: Tue Sep 29 18:21:07 2015
New Revision: 248852

URL: http://llvm.org/viewvc/llvm-project?rev=248852&view=rev
Log:
[CMake] [Darwin] [builtins] Make CMake re-generate if the builtin filter lists change.

We need to make sure that if you change the builtin filter lists CMake re-generates its configurations so it includes the right builtins in the generated libraries.

Added:
    compiler-rt/trunk/lib/builtins/Darwin-excludes/CMakeLists.txt
    compiler-rt/trunk/lib/builtins/macho_embedded/CMakeLists.txt
Modified:
    compiler-rt/trunk/lib/builtins/CMakeLists.txt

Modified: compiler-rt/trunk/lib/builtins/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/CMakeLists.txt?rev=248852&r1=248851&r2=248852&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/builtins/CMakeLists.txt Tue Sep 29 18:21:07 2015
@@ -326,6 +326,8 @@ set(armv7em_SOURCES ${arm_SOURCES})
 add_custom_target(builtins)
 
 if (APPLE)
+  add_subdirectory(Darwin-excludes)
+  add_subdirectory(macho_embedded)
   darwin_add_builtin_libraries(${BUILTIN_SUPPORTED_OS})
 elseif (NOT WIN32 OR MINGW)
   foreach (arch ${BUILTIN_SUPPORTED_ARCH})

Added: compiler-rt/trunk/lib/builtins/Darwin-excludes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/Darwin-excludes/CMakeLists.txt?rev=248852&view=auto
==============================================================================
--- compiler-rt/trunk/lib/builtins/Darwin-excludes/CMakeLists.txt (added)
+++ compiler-rt/trunk/lib/builtins/Darwin-excludes/CMakeLists.txt Tue Sep 29 18:21:07 2015
@@ -0,0 +1,4 @@
+file(GLOB filter_files ${CMAKE_CURRENT_SOURCE_DIR}/*.txt)
+foreach(filter_file ${filter_files})
+  set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${filter_file})
+endforeach()

Added: compiler-rt/trunk/lib/builtins/macho_embedded/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/macho_embedded/CMakeLists.txt?rev=248852&view=auto
==============================================================================
--- compiler-rt/trunk/lib/builtins/macho_embedded/CMakeLists.txt (added)
+++ compiler-rt/trunk/lib/builtins/macho_embedded/CMakeLists.txt Tue Sep 29 18:21:07 2015
@@ -0,0 +1,4 @@
+file(GLOB filter_files ${CMAKE_CURRENT_SOURCE_DIR}/*.txt)
+foreach(filter_file ${filter_files})
+  set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${filter_file})
+endforeach()




More information about the llvm-commits mailing list