[llvm] [CMake] Configure ccache using command line options (PR #134857)

Kajetan Puchalski via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 14 12:44:21 PDT 2025


mrkajetanp wrote:

Nope, had to revert again. I think what's happening is that on some of those Windows machines if neither LLVM_CCACHE_MAXSIZE nor LLVM_CCACHE_DIR are set, then LLVM_CCACHE_PARAMS stays like what it is set to in the snippet below and turns into "C:\ninja\ccache.exe run_second_cpp=true hash_dir=true" as opposed to that but without surrounding quotemarks which is what we want. I'm not sure how to reliably get around this while keeping LLVM_CCACHE_PARAMS as a CACHE STRING as opposed to making it into a list from the get-go.
```
      set(LLVM_CCACHE_PARAMS "run_second_cpp=true;hash_dir=true"
          CACHE STRING "Parameters to pass through to ccache")
```

https://github.com/llvm/llvm-project/pull/134857


More information about the llvm-commits mailing list