[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)
commitc486541fea5db3a329132949c61ecf443aac3aea
tree7d1fec74ffe80469df281fb49b2bde83db37be96
parent705f7775bb6c1863da2cbde59270d545653f00d6
[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.

llvm-svn: 276674
clang/CMakeLists.txt