Displaying 6 results from an estimated 6 matches for "lib_llvmsupport".
2015 Oct 08
4
Cmake-gen'd parallel make breaks on native tablegen
...e/modules/TableGen.cmake
> +++ b/cmake/modules/TableGen.cmake
> @@ -70,6 +70,15 @@ function(add_public_tablegen_target target)
> set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${target} PARENT_SCOPE)
> endfunction()
>
> +if(LLVM_USE_HOST_TOOLS)
> + add_custom_command(OUTPUT LIB_LLVMSUPPORT
> + COMMAND ${CMAKE_COMMAND} --build . --target LLVMSupport --config Release
> + DEPENDS CONFIGURE_LLVM_NATIVE
> + WORKING_DIRECTORY ${LLVM_NATIVE_BUILD}
> + COMMENT "Building libLLVMSupport for native TableGen...")
> + add_custom_target(NATIVE_LIB_LLVM...
2015 Oct 07
2
Cmake-gen'd parallel make breaks on native tablegen
.....b24197b 100644
> --- a/cmake/modules/TableGen.cmake
> +++ b/cmake/modules/TableGen.cmake
> @@ -70,6 +70,13 @@ function(add_public_tablegen_target target)
> set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${target} PARENT_SCOPE)
> endfunction()
>
> +add_custom_command(OUTPUT LIB_LLVMSUPPORT
> + COMMAND ${CMAKE_COMMAND} --build . --target LLVMSupport --config Release
> + DEPENDS CONFIGURE_LLVM_NATIVE
> + WORKING_DIRECTORY ${LLVM_NATIVE_BUILD}
> + COMMENT "Building libLLVMSupport for native TableGen...")
> +add_custom_target(NATIVE_LIB_LLVMSUPPORT DE...
2015 Oct 20
2
Cmake-gen'd parallel make breaks on native tablegen
...les/TableGen.cmake
>>> @@ -70,6 +70,15 @@ function(add_public_tablegen_target target)
>>> set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} ${target} PARENT_SCOPE)
>>> endfunction()
>>>
>>> +if(LLVM_USE_HOST_TOOLS)
>>> + add_custom_command(OUTPUT LIB_LLVMSUPPORT
>>> + COMMAND ${CMAKE_COMMAND} --build . --target LLVMSupport --config Release
>>> + DEPENDS CONFIGURE_LLVM_NATIVE
>>> + WORKING_DIRECTORY ${LLVM_NATIVE_BUILD}
>>> + COMMENT "Building libLLVMSupport for native TableGen...")
>>&...
2015 Oct 06
2
Cmake-gen'd parallel make breaks on native tablegen
...gt; --- a/cmake/modules/TableGen.cmake
>> +++ b/cmake/modules/TableGen.cmake
>> @@ -107,9 +107,18 @@ macro(add_tablegen target project)
>> endif()
>> set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE)
>>
>> + if(NOT TARGET NATIVE_LIB_LLVMSUPPORT)
Instead of doing this you could move creating this out of the macro. Then it will be executed when the file is included which should only be once.
>> + add_custom_command(OUTPUT LIB_LLVMSUPPORT
>> + COMMAND ${CMAKE_COMMAND} --build . --target LLVMSupport --config Rele...
2015 Oct 05
3
Cmake-gen'd parallel make breaks on native tablegen
...modules/TableGen.cmake
index 452a728..be6729d 100644
--- a/cmake/modules/TableGen.cmake
+++ b/cmake/modules/TableGen.cmake
@@ -107,9 +107,18 @@ macro(add_tablegen target project)
endif()
set(${project}_TABLEGEN_EXE ${${project}_TABLEGEN_EXE} PARENT_SCOPE)
+ if(NOT TARGET NATIVE_LIB_LLVMSUPPORT)
+ add_custom_command(OUTPUT LIB_LLVMSUPPORT
+ COMMAND ${CMAKE_COMMAND} --build . --target LLVMSupport --config Release
+ DEPENDS CONFIGURE_LLVM_NATIVE
+ WORKING_DIRECTORY ${LLVM_NATIVE_BUILD}
+ COMMENT "Building libLLVMSupport for native TableGen...&...
2015 Sep 28
3
Cmake-gen'd parallel make breaks on native tablegen
Hello backend devs,
Been working on a parallelization bug in the cmake configs, where parallel makefile builds of llvm with clang and native tablegen would usually break during linking in either either the clang_tblgen or llvm_tblgen targets. Looking at the cmake command that generates the tablegen makefile commands (I think) (cmake/modules/TableGen.cmake:113-117):