[clang] [Clang] [Driver] Normalize target features forwarded to external tools (PR #245200)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 00:24:34 PST 2026
================
@@ -249,9 +249,12 @@ void hexagon::Assembler::ConstructJob(Compilation &C, const JobAction &JA,
// -mattr=.
std::vector<StringRef> Features;
hexagon::getHexagonTargetFeatures(D, HTC.getTriple(), Args, Features);
- if (!Features.empty())
+ // Keep only the last selection for each feature, matching Clang's target
+ // feature emission instead of forwarding redundant entries to llvm-mc.
----------------
Ris-Bali wrote:
I agree we should switch to clang to remove the dependency on llvm-mc being installed. We’ll submit a follow up patch for that migration, since it’s beyond the scope of this normalization patch.
https://github.com/llvm/llvm-project/pull/245200
More information about the cfe-commits
mailing list