[llvm-commits] [PATCH] Cross-building for 32-bits from CMake

Tim Northover t.p.northover at gmail.com
Tue May 22 01:49:20 PDT 2012


> CMake is supposed to support -DLLVM_BUILD_32_BITS to build a 32-bit
> version of LLVM from a 64-bit system. However, it implements the flag
> like this:
>
> list(APPEND CMAKE_EXE_LINKER_FLAGS -m32)
>
> the problem is that CMAKE_EXE_LINKER_FLAGS (and _SHARED_) aren't
> actually lists in the CMake sense (separated by ';'), so this can give
> you a linker command containing the argument ";-m32" which goes
> horribly wrong.
>
> I assume the variable was empty when this feature was implemented so
> no semicolon was needed. The attached patch fixes this issue.
>
> Ok to commit?

Ping?

Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake.diff
Type: application/octet-stream
Size: 724 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120522/e2dd266f/attachment.obj>


More information about the llvm-commits mailing list