[all-commits] [llvm/llvm-project] fe58ee: [Clang] Only allow `clang` arguments to `-Xarch` (...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Thu Feb 6 14:36:31 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fe58eee60200c91b5b4131e9dc73a5e870b3cf4d
https://github.com/llvm/llvm-project/commit/fe58eee60200c91b5b4131e9dc73a5e870b3cf4d
Author: Joseph Huber <huberjn at outlook.com>
Date: 2025-02-06 (Thu, 06 Feb 2025)
Changed paths:
M clang/lib/Driver/ToolChain.cpp
M clang/test/Driver/Xarch.c
Log Message:
-----------
[Clang] Only allow `clang` arguments to `-Xarch` (#126101)
Summary:
Currently the `-Xarch` argument needs to re-parse the option, which goes
through every single registered argument. This causes errors when trying
to pass `-O1` through it because it thinks it's a DXC option. This patch
changes the behavior to only allow `clang` options. Concievably we could
detect the driver mode to make this more robust, but I don't know if
there are other users for this.
Fixes: https://github.com/llvm/llvm-project/issues/110325
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