[CMake] Enhance llvm_update_compile_flags(name sources) to handle LLVM_REQUIRES_EH...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 28 Jan 2014 09:44:06 +0000 (09:44 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 28 Jan 2014 09:44:06 +0000 (09:44 +0000)
commit3303370cd028ecb3c57820e2e994f3d3099c0607
tree3b4b5ae443ee5efa80d443c971725dee5fc3ceae
parent16268c0de7542009429f619fb5143937450d9c51
[CMake] Enhance llvm_update_compile_flags(name sources) to handle LLVM_REQUIRES_EH and LLVM_REQUIRES_RTTI.

LLVM_REQUIRES_EH implies LLVM_REQUIRES_RTTI. It is as same behavior as Makefile.rule's.
llvm/examples/ExceptionDemo is affected. (It was built with -fno-rtti.)

For MSVC, Remove flags like "/EHsc /GR" in HandleLLVMOptions, or CL.EXE complains with flags like "/GR /GR-".

llvm_update_compile_flags() updates source file property if the target contains *.c.
COMPILE_FLAGS in target properties affects both C++ and C!

LLVM_NO_RTTI is deprecated. It was introduced by me and was my mistake.

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