[all-commits] [llvm/llvm-project] 6311b1: [clang][Driver] Support passing arbitrary args to ...
Alex Rønne Petersen via All-commits
all-commits at lists.llvm.org
Fri Apr 18 19:10:19 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6311b11595f152a8f4aa02cfa544e72ede66688a
https://github.com/llvm/llvm-project/commit/6311b11595f152a8f4aa02cfa544e72ede66688a
Author: Alex Rønne Petersen <alex at alexrp.com>
Date: 2025-04-19 (Sat, 19 Apr 2025)
Changed paths:
M clang/docs/UsersManual.rst
M clang/include/clang/Driver/Options.td
M clang/lib/Driver/ToolChains/Clang.cpp
A clang/test/Driver/Xclangas.s
Log Message:
-----------
[clang][Driver] Support passing arbitrary args to `-cc1as` with `-Xclangas`. (#100714)
Unlike the `-Xassembler` idea mentioned in #97517, this one comes with
no GCC compatibility concerns, and simply mirrors what `-Xclang` does
for `-cc1`.
This is useful for mostly the same reasons that `-Xclang` is. The
motivating use case is `zig cc`, however, where we use `-Xclang
-target-feature` to pass the exhaustive list of target features to Clang
for C-family files. Before this commit, there was no way to do the same
for assembly files.
For context, Zig bases all of its target feature info directly on the
info in LLVM's backends, including all the dependency relationships
therein. So it just makes more sense for Zig to be able to directly pass
all this info to the assembler, rather than having to manually
reconstruct the corresponding frontend command line flags for every
target.
Closes #97517.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list