]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: Add --print-version option (#1454)
authorSilver Zachara <silver.zachara@gmail.com>
Fri, 17 May 2024 19:12:25 +0000 (21:12 +0200)
committerGitHub <noreply@github.com>
Fri, 17 May 2024 19:12:25 +0000 (21:12 +0200)
commitd6d0a1e3de1c2d14b5b75e1fba114e8693324122
tree71c803309c820e2bf3d8bb8bc74669dcd5917e06
parent1bcde8b4b94e57668252051c6c020b6ac842c098
feat: Add --print-version option (#1454)

I have added a new `--print-version` option as ccache will support PCH
on msvc and I will need to somehow detect the ccache version to
correctly decide if PCH should be disabled
(`CMAKE_DISABLE_PRECOMPILE_HEADERS`).

So if ccache >=4.10 then don't disable PCH and if it's below then set
`CMAKE_DISABLE_PRECOMPILE_HEADERS=ON`.
doc/MANUAL.adoc
src/ccache/core/mainoptions.cpp