This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Allow LLVM_EXTERNAL_<proj>_SOURCE_DIR to be overridden if it is empty.
ClosedPublic

Authored by ychen on Jul 20 2019, 7:05 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

ychen created this revision.Jul 20 2019, 7:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2019, 7:05 PM
ychen added a comment.Jul 20 2019, 7:08 PM

https://github.com/llvm/llvm-project/blob/master/llvm/docs/CMake.rst and some other places in the codebase refer to the type as PATH.

beanz requested changes to this revision.Jul 20 2019, 8:26 PM

Adding ‘FORCE’ makes this not user overridable, which is the whole point of this being a cache variable.

This revision now requires changes to proceed.Jul 20 2019, 8:26 PM
ychen updated this revision to Diff 210982.Jul 20 2019, 10:00 PM
  • Override LLVM_EXTERNAL_<proj>_SOURCE_DIR when it is empty.

Adding ‘FORCE’ makes this not user overridable, which is the whole point of this being a cache variable.

Thanks. Add the FORCE flag only when the existing variable is empty.

ychen updated this revision to Diff 211113.Jul 22 2019, 8:49 AM
  • update
ychen retitled this revision from [CMake] LLVM_EXTERNAL_<proj>_SOURCE_DIR should be adjustable. to [CMake] Allow LLVM_EXTERNAL_<proj>_SOURCE_DIR to be overridden if it is empty..Jul 22 2019, 8:50 AM
ychen edited the summary of this revision. (Show Details)
ychen added a reviewer: hans.Jul 22 2019, 6:34 PM
beanz accepted this revision.Jul 26 2019, 9:50 AM

LGTM. At some point (after the mono-repo becomes the source of truth) we need to clean all this up.

This revision is now accepted and ready to land.Jul 26 2019, 9:50 AM
This revision was automatically updated to reflect the committed changes.