]> 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>
Sun, 28 Sep 2025 12:10:58 +0000 (14:10 +0200)
commit36282483f3ac0b2a018eb9ea1f543004620bf622
treeada2356a932370f573a2c98c66911e9dd05d309f
parent48040ef088d9f856432d3a3ef4a0b1204f3a063c
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.
src/ccache/argprocessing.cpp
unittest/test_argprocessing.cpp