This is an archive of the discontinued LLVM Phabricator instance.

CMake: make LLVM_OPTIMIZED_TABLEGEN friendly with LLVM_EXTERNAL_CLANG_SOURCE_DIR
ClosedPublic

Authored by mehdi_amini on Nov 9 2016, 4:24 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

mehdi_amini updated this revision to Diff 77421.Nov 9 2016, 4:24 PM
mehdi_amini retitled this revision from to CMake: make LLVM_OPTIMIZED_TABLEGEN friendly with LLVM_EXTERNAL_CLANG_SOURCE_DIR.
mehdi_amini updated this object.
mehdi_amini added a reviewer: beanz.
mehdi_amini added a subscriber: llvm-commits.
beanz edited edge metadata.Nov 9 2016, 5:15 PM

You should only set this if the variable is set, otherwise it will set the variable to empty and CMake's bad caching behavior will leave you stuck with that.

mehdi_amini updated this revision to Diff 77427.Nov 9 2016, 5:23 PM
mehdi_amini edited edge metadata.

Only pass the option if it is set

beanz accepted this revision.Nov 10 2016, 10:32 AM
beanz edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 10 2016, 10:32 AM
This revision was automatically updated to reflect the committed changes.