[all-commits] [llvm/llvm-project] 0d7eba: [Driver] Allow target override containing . in exe...
dankm via All-commits
all-commits at lists.llvm.org
Wed Oct 26 16:52:45 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0d7eba1aeed853798bd8012f786c305e83a97b67
https://github.com/llvm/llvm-project/commit/0d7eba1aeed853798bd8012f786c305e83a97b67
Author: Dan McGregor <dan.mcgregor at usask.ca>
Date: 2022-10-26 (Wed, 26 Oct 2022)
Changed paths:
M clang/lib/Driver/ToolChain.cpp
M clang/test/Driver/target-override.c
Log Message:
-----------
[Driver] Allow target override containing . in executable name
The gcc compatible driver has support for overriding the default
target based on the driver's executable name, for instance
x86_64-pc-linux-gnu-clang will set the default target to
x86_64-pc-linux-gnu.
Previously, this failed when the target contained a minor version, for
example x86_64-pc-freebsd13.1, so instead of finding the file's
stem, use the whole file name, but strip off any '.exe' from the tail.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D135284
More information about the All-commits
mailing list