]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Handle -Xarch_host/-Xarch_device except with other -Xarch_*
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Sep 2025 11:35:03 +0000 (13:35 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 1 Oct 2025 18:27:21 +0000 (20:27 +0200)
commit1ac621c111afe0175b6465b59454f934400f71e4
tree4881d664a919eea3e0f5276d8aac427d6459c922
parenta50e311cbd4c756fdedf6acd50ee2e8753330587
fix: Handle -Xarch_host/-Xarch_device except with other -Xarch_*

-Xarch_host and -Xarch_device appear to have different semantics than
other -Xarch_* options, so add special case code that allows only
-Xarch_host options or only -Xarch_device options while falling back to
the compiler for other combinations.

A future improvement would be to add multi-pass support for -Xarch_host
and -Xarch_device combinations as well.

Fixes #1632.

(cherry picked from commit 36282483f3ac0b2a018eb9ea1f543004620bf622)
src/ccache/argprocessing.cpp
unittest/test_argprocessing.cpp