]> granicus.if.org Git - clang/commit
[CMake] Cleaning up some CMake warnings
authorChris Bieneman <beanz@apple.com>
Mon, 25 Jul 2016 18:54:30 +0000 (18:54 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 25 Jul 2016 18:54:30 +0000 (18:54 +0000)
commit476fbf46d12fc0359d8788ac8badadaacc8b9873
tree64d7a8c9e84a8dc3aaa7fac97adaf54849f26af7
parent837327528c4ea21b29b7376b5f206bd9e50a6944
[CMake] Cleaning up some CMake warnings

In Bootstrap builds Clang logs some warnings. These are caused because Clang passes CLANG_STAGE and BOOTSTRAP_DEFAULT_PASSTHROUGH into the next stage's configuration.

BOOTSTRAP_DEFAULT_PASSTHROUGH shouldn't be passed, so it is renamed to _BOOTSTRAP_DEFAULT_PASSTHROUGH, to prevent passthrough.

CLANG_STAGE should be passed, so I've changed the code to log it if it is set outside the if(CLANG_ENABLE_BOOTSTRAP) block. This makes the variable always used, so the warning goes away.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276674 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt