Displaying 6 results from an estimated 6 matches for "native_lib_llvmsupport".
2015 Oct 08
4
Cmake-gen'd parallel make breaks on native tablegen
...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 DEPENDS LIB_LLVMSUPPORT)
> +endif(LLVM_USE_HOST_TOOLS)
> +
> macro(add_tablegen target project)
> set(${target}_OLD_LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS})
> set(LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS} TableGen)
> @@ -109,7 +118,7 @@ macro(add_tablegen target projec...
2015 Oct 07
2
Cmake-gen'd parallel make breaks on native tablegen
...nd(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 DEPENDS LIB_LLVMSUPPORT)
> +
> macro(add_tablegen target project)
> set(${target}_OLD_LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS})
> set(LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS} TableGen)
> @@ -109,7 +116,7 @@ macro(add_tablegen target project)
>
> add_custom_co...
2015 Oct 20
2
Cmake-gen'd parallel make breaks on native tablegen
...AND ${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 DEPENDS LIB_LLVMSUPPORT)
>>> +endif(LLVM_USE_HOST_TOOLS)
>>> +
>>> macro(add_tablegen target project)
>>> set(${target}_OLD_LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS})
>>> set(LLVM_LINK_COMPONENTS ${LLVM_LINK_COMPONENTS} TableGen)
>>> @@ -109,...
2015 Oct 06
2
Cmake-gen'd parallel make breaks on native tablegen
...4
>> --- 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
.../cmake/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):