]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: Support -Xpreprocessor -fopenmp in direct mode
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 27 Apr 2024 13:22:40 +0000 (15:22 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 27 Apr 2024 14:12:02 +0000 (16:12 +0200)
commitbea737780727e751a8193fc80c83c7c072b8048e
treee4b732959b5b7c163a55aa4da785b587cd44da0d
parent6a5c4de998af28a4b00c1c31a368ec7bf8412b0b
feat: Support -Xpreprocessor -fopenmp in direct mode

All uses of -Xpreprocessor disable the direct mode as a safety measure
since the command line could include things like

  -Xpreprocessor -MF -Xpreprocessor file.d

which ccache needs to understand as

  -MF file.d

Ideally, ccache should handle this in a generic way. Meanwhile, let's
allow it in the a special case of "-Xpreprocessor -fopenmp" since that's
required on macOS to enable OpenMP.

Closes #1434.
doc/MANUAL.adoc
src/ccache/argprocessing.cpp
src/ccache/compopt.cpp
unittest/test_compopt.cpp