[llvm] [AIX] Using `ccache-swig` as the `ccache` Binary (PR #90624)
David Tenty via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 13:49:40 PDT 2024
================
@@ -256,7 +256,12 @@ unset(SHOULD_ENABLE_PROJECT)
# Build llvm with ccache if the package is present
set(LLVM_CCACHE_BUILD OFF CACHE BOOL "Set to ON for a ccache enabled build")
if(LLVM_CCACHE_BUILD)
- find_program(CCACHE_PROGRAM ccache)
+ if(${CMAKE_SYSTEM_NAME} MATCHES "AIX")
----------------
daltenty wrote:
This tool is actually available on other platforms too:
https://packages.ubuntu.com/search?searchon=contents&keywords=ccache-swig&mode=exactfilename&suite=kinetic&arch=any
I think we should just use `find_program` to see if `ccache` exists, and if that returns `NOTFOUND` the fall back to looking for `ccache-swig` with find program
https://cmake.org/cmake/help/latest/command/find_program.html
https://github.com/llvm/llvm-project/pull/90624
More information about the llvm-commits
mailing list