sgundapa at codeaurora.org
2014-Jun-13 23:26 UTC
[LLVMdev] LLVMgold.so in windows LLVM builds
I am trying to build LLVMgold.so on windows. I came across this piece of code which includes gold source directory in tools/CMakeLists.txt if( LLVM_ENABLE_PIC ) # TODO: support other systems: if( (CMAKE_SYSTEM_NAME STREQUAL "Linux") OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") ) add_llvm_tool_subdirectory(gold) else() ignore_llvm_tool_subdirectory(gold) endif() else() ignore_llvm_tool_subdirectory(gold) endif() This basically says, I cannot build LLVMgold.so on windows. Any specific reasons for why this is the case? --Sumanth G
Hi, On 14 June 2014 00:26, <sgundapa at codeaurora.org> wrote:> I am trying to build LLVMgold.so on windows. > I came across this piece of code which includes “gold” source directory in > tools/CMakeLists.txtIt seems to date from the original gold import in 2011, so it's probably just from being careful. Disabling the check is worth a try, though I think even the binutils Windows linkers use something other than Linux's ELF. Theoretically, it has a reasonable chance of working anyway, but you never know whether we've smuggled something platform-specific in there. Remember to also specify LLVM_BINUTILS_INCDIR! Took me ages to work out why gold suddenly stopped being built last time. Cheers. Tim.
sgundapa at codeaurora.org
2014-Jun-30 19:10 UTC
[LLVMdev] LLVMgold.so in windows LLVM builds
I tried building it on windows with some CMake changes. But unfortunatelym my clang crashes when it tries to access the LLVMgold (not able to open it). I have CCed Rafeal and Nakamura who might know why gold plugin in not supported on Windows platforms. --Sumanth G> Hi, > > On 14 June 2014 00:26, <sgundapa at codeaurora.org> wrote: >> I am trying to build LLVMgold.so on windows. >> I came across this piece of code which includes âgoldâ source >> directory in >> tools/CMakeLists.txt > > It seems to date from the original gold import in 2011, so it's > probably just from being careful. > > Disabling the check is worth a try, though I think even the binutils > Windows linkers use something other than Linux's ELF. Theoretically, > it has a reasonable chance of working anyway, but you never know > whether we've smuggled something platform-specific in there. > > Remember to also specify LLVM_BINUTILS_INCDIR! Took me ages to work > out why gold suddenly stopped being built last time. > > Cheers. > > Tim. >