diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2009-08-14 01:55:05 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2009-08-14 01:55:05 +0000 |
commit | 27b08a4fcd716086cdaae1ed2ced0101f672a7d6 (patch) | |
tree | 5e0cc18ec37648db8f28cf6b1a42890cf61e4de8 /tools | |
parent | a441c1a63b3ee5756a43e561bcd245e198313a98 (diff) | |
download | external_llvm-27b08a4fcd716086cdaae1ed2ced0101f672a7d6.zip external_llvm-27b08a4fcd716086cdaae1ed2ced0101f672a7d6.tar.gz external_llvm-27b08a4fcd716086cdaae1ed2ced0101f672a7d6.tar.bz2 |
CMake: build llvm-config before the other tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/CMakeLists.txt | 7 | ||||
-rw-r--r-- | tools/llvm-config/CMakeLists.txt | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 5dcfeba..40bf692 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -3,7 +3,12 @@ # in parallel builds. Please retain this ordering. if( NOT MSVC ) - add_subdirectory(llvm-config) + # It is useful to build llvm-config before the other tools, so we + # have a fresh LibDeps.txt for regenerating the hard-coded library + # dependencies. llvm-config/CMakeLists.txt takes care of this but we + # must keep llvm-config as the first entry on the list of tools to + # be built. + add_subdirectory(llvm-config) endif() add_subdirectory(opt) diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt index 08074be..03fe66b 100644 --- a/tools/llvm-config/CMakeLists.txt +++ b/tools/llvm-config/CMakeLists.txt @@ -113,6 +113,12 @@ add_custom_target(llvm-config.target ALL add_dependencies(llvm-config.target ${llvm_lib_targets}) +# Make sure that llvm-config builds before the llvm tools, so we have +# LibDeps.txt and can use it for updating the hard-coded library +# dependencies on cmake/modules/LLVMLibDeps.cmake when the tools' +# build fail due to outdated dependencies: +set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} llvm-config.target) + install(FILES ${LLVM_CONFIG} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE |