This is an archive of the discontinued LLVM Phabricator instance.

[clang-tools-extra] Reuse llvm_config.use_clang() to set up test environment
ClosedPublic

Authored by sammccall on Mar 10 2022, 3:32 PM.

Details

Summary

This replaces a bunch of duplicate logic to set up environment variables
and a few substitutions.

It does a little more than we were doing previously:

  • searching for clang and setting up substitutions for it
  • setting up some substitutions for target triples, which are potentially useful but not actually used

clangd has been happily using this for its tests for a while.

Diff Detail