[CMake] Move the setting of LLVM_COMPILER_IS_GCC_COMPATIBLE to a separate file
authorJohn Brawn <john.brawn@arm.com>
Tue, 29 Sep 2015 14:33:58 +0000 (14:33 +0000)
committerJohn Brawn <john.brawn@arm.com>
Tue, 29 Sep 2015 14:33:58 +0000 (14:33 +0000)
commita933c2a939b01a268474d1221e19e41468dde1f7
tree7dccdfb82da76c44f6fd7d23c4e689d2bc7b5fc4
parent79c45a39542b9d62811482b9cc96d7f4429f7d15
[CMake] Move the setting of LLVM_COMPILER_IS_GCC_COMPATIBLE to a separate file

Currently LLVM_COMPILER_IS_GCC_COMPATIBLE is set as a side-effect of determining
the stdlib to use in HandleLLVMStdlib, which causes problems when attempting to
use AddLLVM from an installed LLVM toolchain, as HandleLLVMStdlib is not used.
Move the setting of this variable into DetermineGCCCompatible and include that
from both AddLLVM and HandleLLVMStdlib.

Differential Revision: http://reviews.llvm.org/D13216

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248798 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
cmake/modules/DetermineGCCCompatible.cmake [new file with mode: 0644]
cmake/modules/HandleLLVMStdlib.cmake