зеркало из https://github.com/microsoft/clang-1.git
Create the clang++ symlink as a POST_BUILD custom command on clang.
This saves us from re-creating the symlink on every build even if we didn't rebuild clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145017 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5c247db145
Коммит
82c3460326
|
@ -46,12 +46,10 @@ endif()
|
|||
|
||||
# Create the clang++ symlink in the build directory.
|
||||
set(clang_pp "${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang++${CMAKE_EXECUTABLE_SUFFIX}")
|
||||
add_custom_target(clang++ ALL
|
||||
${CMAKE_COMMAND} -E ${CLANGXX_LINK_OR_COPY}
|
||||
add_custom_command(TARGET clang POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E ${CLANGXX_LINK_OR_COPY}
|
||||
"${LLVM_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/clang${CMAKE_EXECUTABLE_SUFFIX}"
|
||||
"${clang_pp}"
|
||||
DEPENDS clang)
|
||||
set_target_properties(clang++ PROPERTIES FOLDER "Clang executables")
|
||||
"${clang_pp}")
|
||||
|
||||
set_property(DIRECTORY APPEND
|
||||
PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${clang_pp})
|
||||
|
|
Загрузка…
Ссылка в новой задаче