[PATCH] D117445: [lit] Expose clang search_env string as a use_clang argument
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 16 18:04:41 PST 2022
Amir updated this revision to Diff 400413.
Amir added a comment.
Remove BOLT changes
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117445/new/
https://reviews.llvm.org/D117445
Files:
llvm/utils/lit/lit/llvm/config.py
Index: llvm/utils/lit/lit/llvm/config.py
===================================================================
--- llvm/utils/lit/lit/llvm/config.py
+++ llvm/utils/lit/lit/llvm/config.py
@@ -437,7 +437,7 @@
return tool
def use_clang(self, additional_tool_dirs=[], additional_flags=[],
- required=True, use_installed=False):
+ required=True, use_installed=False, search_env='CLANG'):
"""Configure the test suite to be able to invoke clang.
Sets up some environment variables important to clang, locates a
@@ -505,7 +505,7 @@
# Discover the 'clang' and 'clangcc' to use.
self.config.clang = self.use_llvm_tool(
- 'clang', search_env='CLANG', required=required,
+ 'clang', search_env=search_env, required=required,
search_paths=paths, use_installed=use_installed)
if self.config.clang:
self.config.available_features.add('clang')
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117445.400413.patch
Type: text/x-patch
Size: 970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220117/91f7eca7/attachment.bin>
More information about the llvm-commits
mailing list