[all-commits] [llvm/llvm-project] 7cca34: [llvm-rc]: Find <target>-clang over just clang
Tobias Hieta via All-commits
all-commits at lists.llvm.org
Wed Feb 9 00:05:07 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7cca34acc4acd9d163ca8b9e585587b8897483b9
https://github.com/llvm/llvm-project/commit/7cca34acc4acd9d163ca8b9e585587b8897483b9
Author: Tobias Hieta <tobias at hieta.se>
Date: 2022-02-09 (Wed, 09 Feb 2022)
Changed paths:
M llvm/tools/llvm-rc/llvm-rc.cpp
Log Message:
-----------
[llvm-rc]: Find <target>-clang over just clang
This patch makes llvm-rc/windres prefer <target>-clang over
clang when doing it's preprocessing. This is so that we can
have a .cfg file for <target> and configure sysroot and other
important flags.
Config files not picked up with clang --target=<target>
automatically.
We only look for <target>-clang in the same dir as llvm-windres
and not for all PATHs to minimize the change.
Reviewed By: mstorsjo
Differential Revision: https://reviews.llvm.org/D119219
More information about the All-commits
mailing list