OSDN Git Service

LLVM_BUILD_32_BITS: Add -m32 with CMAKE_C*_FLAGS. [CMP0056]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 6 Jun 2016 05:54:55 +0000 (05:54 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 6 Jun 2016 05:54:55 +0000 (05:54 +0000)
commit80d87f6ff34b8f48a40a7a716f021460069c528f
tree155a814895af4c8c586fefa56dacbb5fa77158a2
parent856b53e00687d41a8c6896930275b60abde8221a
LLVM_BUILD_32_BITS: Add -m32 with CMAKE_C*_FLAGS. [CMP0056]

With CMP0056, try_compile() uses also CMAKE_EXE_LINKER_FLAG.
It caused mismatch between CMAKE_CXX_FLAGS and CMAKE_EXE_LINKER_FLAGS, to fail to examine CXX_SUPPORTS_CXX11 with -m32.

FYI, before this, try_compile() tries without -m32 regardless of LLVM_BUILD_32_BITS.

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