[PATCH] D134871: [llvm] [lit] Move %clang_dxc substitution from clang/test
Michał Górny via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 29 04:10:40 PDT 2022
mgorny created this revision.
mgorny added reviewers: python3kgae, beanz, MaskRay, zturner.
Herald added subscribers: StephenFan, delcypher.
Herald added a project: All.
mgorny requested review of this revision.
Herald added a project: LLVM.
Move the `%clang_dxc` substitution from local definition in clang/test
to lit's `llvm/config.py` module where all other driver definitions
are found. This improves consistency and makes it easier to control
global clang options.
https://reviews.llvm.org/D134871
Files:
clang/test/lit.cfg.py
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
@@ -544,6 +544,8 @@
extra_args=['--driver-mode=cpp']+additional_flags),
ToolSubst('%clang_cl', command=self.config.clang,
extra_args=['--driver-mode=cl']+additional_flags),
+ ToolSubst('%clang_dxc', command=self.config.clang,
+ extra_args=['--driver-mode=dxc']+additional_flags),
ToolSubst('%clangxx', command=self.config.clang,
extra_args=['--driver-mode=g++']+additional_flags),
]
Index: clang/test/lit.cfg.py
===================================================================
--- clang/test/lit.cfg.py
+++ clang/test/lit.cfg.py
@@ -63,8 +63,6 @@
'clang-tblgen', 'clang-scan-deps', 'opt', 'llvm-ifs', 'yaml2obj', 'clang-linker-wrapper',
ToolSubst('%clang_extdef_map', command=FindTool(
'clang-extdef-mapping'), unresolved='ignore'),
- ToolSubst('%clang_dxc', command=config.clang,
- extra_args=['--driver-mode=dxc']),
]
if config.clang_examples:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134871.463843.patch
Type: text/x-patch
Size: 1223 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220929/d8a050dd/attachment.bin>
More information about the cfe-commits
mailing list