mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 16:22:41 +00:00
cmake: Don't build llvm-config and tblgen concurrently in cross builds
This sets USES_TERMINAL for the native llvm-config build, so that it doesn't run at the same time as builds of other native tools (namely, tablegen). Without this, if you're very unlucky with the timing it's possible to be relinking libSupport as one of the tools is linking, causing a spurious failure. The tablegen build adopted USES_TERMINAL for this same reason in r280748. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290271 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
91d837c186
commit
8bddda3652
@ -69,7 +69,8 @@ if(CMAKE_CROSSCOMPILING)
|
||||
COMMAND ${CMAKE_COMMAND} --build . --target llvm-config --config $<CONFIGURATION>
|
||||
DEPENDS ${LLVM_NATIVE_BUILD}/CMakeCache.txt
|
||||
WORKING_DIRECTORY ${LLVM_NATIVE_BUILD}
|
||||
COMMENT "Building native llvm-config...")
|
||||
COMMENT "Building native llvm-config..."
|
||||
USES_TERMINAL)
|
||||
add_custom_target(${project}NativeLLVMConfig DEPENDS ${${project}_LLVM_CONFIG_EXE})
|
||||
add_dependencies(${project}NativeLLVMConfig CONFIGURE_LLVM_NATIVE)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user