cmake: Pass the -m32 flag to modules if LLVM_BUILD_32_BITS is enabled
authorTobias Grosser <grosser@fim.uni-passau.de>
Fri, 8 Jun 2012 09:41:23 +0000 (09:41 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Fri, 8 Jun 2012 09:41:23 +0000 (09:41 +0000)
commit2563ad294fb27baaef2ef12f7829b8289c6925ae
treeb6dea4856fddbf9c270b69fd274354343990a84a
parent7e8921b0d17db6a2a0f98dcc791f136750b825c9
cmake: Pass the -m32 flag to modules if LLVM_BUILD_32_BITS is enabled

This was previously only done for executables and shared libraries, but not
for modules. As modules are essentially shared libraries (that need to be
dlopened explicitly), threating them the same as shared libraries seems
reasonable. This fixes the LLVM_BUILD_32_BITS build of Polly.

Contributed by: Ondra Hosek  <ondra.hosek@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158195 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/HandleLLVMOptions.cmake