This is an archive of the discontinued LLVM Phabricator instance.

Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED
ClosedPublic

Authored by thakis on Jan 18 2019, 7:52 AM.

Details

Summary

r291284 added a nice mechanism to consistently pass CMake on/off toggles to lit. This change uses it for LLVM_LIBXML2_ENABLED too (which was added around the same time and doesn't use the new system yet).

Also alphabetically sort the list passed to llvm_canonicalize_cmake_booleans() in llvm/test/CMakeLists.txt.

No intended behavior change.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

thakis created this revision.Jan 18 2019, 7:52 AM
mgorny accepted this revision.Jan 18 2019, 11:39 AM

Looks good. Optionally, I'm suggesting one cleanup.

lld/test/lit.cfg.py
90 ↗(On Diff #182517)

While at it, could you please replace this \ with extra set of outer parentheses?

if (foo or
    bar):
This revision is now accepted and ready to land.Jan 18 2019, 11:39 AM
This revision was automatically updated to reflect the committed changes.
thakis marked an inline comment as done.Jan 18 2019, 4:14 PM

Thanks!