diff options
author | Chris Bieneman <beanz@apple.com> | 2015-09-29 23:21:07 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-09-29 23:21:07 +0000 |
commit | d868fef16c7e51170ac1386c2b3f56ebcf16533d (patch) | |
tree | a3d9fb007bc3096514652a3dcec7819fe768d953 | |
parent | 6a78fd5f4196462fe5a5166ea8bb6207b3a07584 (diff) | |
download | bcm5719-llvm-d868fef16c7e51170ac1386c2b3f56ebcf16533d.tar.gz bcm5719-llvm-d868fef16c7e51170ac1386c2b3f56ebcf16533d.zip |
[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.
llvm-svn: 248852
-rw-r--r-- | compiler-rt/lib/builtins/CMakeLists.txt | 2 | ||||
-rw-r--r-- | compiler-rt/lib/builtins/Darwin-excludes/CMakeLists.txt | 4 | ||||
-rw-r--r-- | compiler-rt/lib/builtins/macho_embedded/CMakeLists.txt | 4 |
3 files changed, 10 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt index d39427afa94..d63a80e2a6d 100644 --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -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}) diff --git a/compiler-rt/lib/builtins/Darwin-excludes/CMakeLists.txt b/compiler-rt/lib/builtins/Darwin-excludes/CMakeLists.txt new file mode 100644 index 00000000000..266e4221524 --- /dev/null +++ b/compiler-rt/lib/builtins/Darwin-excludes/CMakeLists.txt @@ -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() diff --git a/compiler-rt/lib/builtins/macho_embedded/CMakeLists.txt b/compiler-rt/lib/builtins/macho_embedded/CMakeLists.txt new file mode 100644 index 00000000000..266e4221524 --- /dev/null +++ b/compiler-rt/lib/builtins/macho_embedded/CMakeLists.txt @@ -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() |