try to fix fatal error C1041: cannot open program database

This commit is contained in:
Bruno Alexandre Rosa 2026-03-02 23:46:56 -03:00
parent 6bb43e25da
commit acf2322ff2
3 changed files with 6 additions and 5 deletions

View file

@ -128,9 +128,11 @@ if [[ $MAKE_TEST ]]; then
flags+=("-DTEST=1")
fi
if [[ $USE_CCACHE ]]; then
flags+=("-DUSE_CCACHE=1")
if [[ $CCACHE_VARIANT ]]; then
flags+=("-DCMAKE_C_COMPILER_LAUNCHER=$CCACHE_VARIANT" "-DCMAKE_CXX_COMPILER_LAUNCHER=$CCACHE_VARIANT")
# COMPILER_LAUNCHER only; USE_CCACHE=OFF prevents RULE_LAUNCH_COMPILE (avoids Strawberry ccache on Windows)
flags+=("-DUSE_CCACHE=OFF" "-DCMAKE_C_COMPILER_LAUNCHER=$CCACHE_VARIANT" "-DCMAKE_CXX_COMPILER_LAUNCHER=$CCACHE_VARIANT")
else
flags+=("-DUSE_CCACHE=1")
fi
if [[ $CCACHE_SIZE && "$CCACHE_VARIANT" != "sccache" ]]; then
# note, this setting persists after running the script