[LLVMdev] 32-bit in-tree Polly build with CMake

Ondřej Hošek ondra.hosek at gmail.com
Thu Jun 7 05:41:01 PDT 2012


Hi,

I was having troubles building LLVM with Polly in-tree using CMake
with LLVM_BUILD_32_BITS on. Turns out CMake considers LLVMPolly a
module, not a shared library, and LLVM_BUILD_32_BITS only makes
provisions for the EXE and SHARED linker flags.

Possible fixes (pick one):

1. Change cmake/modules/HandleLLVMOptions.cmake to append -m32 to
CMAKE_MODULE_LINKER_FLAGS as well if LLVM_BUILD_32_BITS is set.
2. Change $POLLY/CMakeLists.txt not to use MODULE in add_polly_library.

Should I make an entry in Bugzilla about this or is a post to the
mailing list sufficient? I confess I'm not very familiar with the
organizational aspects of the LLVM project.

Cheers,
~~ Ondra



More information about the llvm-dev mailing list