mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Stop the build if cyclic library dependecies found.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
858a19b3f3
commit
b32944d214
@ -80,8 +80,11 @@ add_custom_command(OUTPUT ${LIBDEPS}
|
||||
DEPENDS ${LIBDEPS_TMP}
|
||||
COMMENT "Updating ${LIBDEPS} if necessary...")
|
||||
|
||||
# This must stop the build if find-cycles.pl returns error:
|
||||
add_custom_command(OUTPUT ${FINAL_LIBDEPS}
|
||||
COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/find-cycles.pl < ${LIBDEPS} > ${FINAL_LIBDEPS} || ${CMAKE_COMMAND} -E remove -f ${FINAL_LIBDEPS}
|
||||
COMMAND ${CMAKE_COMMAND} -E remove -f ${FINAL_LIBDEPS} ${FINAL_LIBDEPS}.tmp
|
||||
COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/find-cycles.pl < ${LIBDEPS} > ${FINAL_LIBDEPS}.tmp
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${FINAL_LIBDEPS}.tmp ${FINAL_LIBDEPS}
|
||||
DEPENDS ${LIBDEPS}
|
||||
COMMENT "Checking for cyclic dependencies between LLVM libraries.")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user