This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Don't include LLDB_TEST_COMPILER in cached variable
ClosedPublic

Authored by beanz on Oct 18 2016, 2:23 PM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

beanz updated this revision to Diff 75073.Oct 18 2016, 2:23 PM
beanz retitled this revision from to [CMake] Don't include LLDB_TEST_COMPILER in cached variable.
beanz updated this object.
beanz added reviewers: tfiala, zturner, labath.
beanz added a subscriber: lldb-commits.
zturner accepted this revision.Oct 18 2016, 2:30 PM
zturner edited edge metadata.
This revision is now accepted and ready to land.Oct 18 2016, 2:30 PM
This revision was automatically updated to reflect the committed changes.