Files
clang-p2996/clang/lib/Driver/ToolChain.cpp
Joseph Huber fe58eee602 [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
2025-02-06 16:36:08 -06:00

60 KiB