summaryrefslogtreecommitdiff
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2014-01-16 06:43:55 +0000
committerQuentin Colombet <qcolombet@apple.com>2014-01-16 06:43:55 +0000
commit23262fb8a08d6dc0f1d4f0665f6f8731ee7cf710 (patch)
tree4382c2ce840de7d644bbf81596c3c8beb2b5aac0 /cmake/modules/AddLLVM.cmake
parent2cc9ba0125e9df4656a6edfb87a34f413d54c250 (diff)
downloadllvm-23262fb8a08d6dc0f1d4f0665f6f8731ee7cf710.tar.gz
llvm-23262fb8a08d6dc0f1d4f0665f6f8731ee7cf710.tar.bz2
llvm-23262fb8a08d6dc0f1d4f0665f6f8731ee7cf710.tar.xz
[cmake] Attempt to fix sanitizer buildbot.
The generation of the native_export_file end up in several different makefiles. All those makefiles write the same file, but can be executed concurrently... and bad things happen! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index de00ab46ae..e93ea10089 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -85,8 +85,12 @@ function(add_llvm_symbol_exports target_name export_file)
# Force re-linking when the exports file changes. Actually, it
# forces recompilation of the source file. The LINK_DEPENDS target
# property only works for makefile-based generators.
- set_property(SOURCE ${first_source_file} APPEND PROPERTY
- OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${native_export_file})
+ # FIXME: This is not safe because this will create the same target
+ # ${native_export_file} in several different file:
+ # - One where we emitted ${target_name}_exports
+ # - One where we emitted the build command for the following object.
+ # set_property(SOURCE ${first_source_file} APPEND PROPERTY
+ # OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${native_export_file})
set_property(DIRECTORY APPEND
PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${native_export_file})