[CMake] Don't include LLDB_TEST_COMPILER in cached variable
authorChris Bieneman <beanz@apple.com>
Tue, 18 Oct 2016 23:54:28 +0000 (23:54 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 18 Oct 2016 23:54:28 +0000 (23:54 +0000)
commitf50761f128950bfedbba7f9ab56d28e2b33f29dd
treefc7140ed191c48f325d110646f89554b15155941
parente80f007dfb6b4f04fb00b28559ce21a2852b89b5
[CMake] Don't include LLDB_TEST_COMPILER in cached variable

Summary:
CMake has no builtin mechanism for cache invalidation. As a general convention you want to not expand user-specified variables in other cached variables because they will not get updated when the user changes their specified value.

This patch moves the "-C" option for dotest.py into the LLDB_TEST_COMMON_ARGS and out of the CMake cache. In order to prevent issues with out-of-date cache files on builders I've added code to scrub "-C ${LLDB_TEST_COMPILER}" out of the CMake caches, by Force writing the variable. This code can be removed in a few days once the change has trickled through CI systems.

Reviewers: tfiala, labath, zturner

Subscribers: lldb-commits, mgorny

Differential Revision: https://reviews.llvm.org/D25751

llvm-svn: 284551
lldb/test/CMakeLists.txt