mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add cmake cache for enabling sccache while building with the new runtime build when sccache is available. To build with sccache, pass the `sccache.cmake` ``` cmake \ -B build \ -S Runtime/Core \ -C Runtimes/Core/cmake/cache/sccache.cmake ```
8 lines
261 B
CMake
8 lines
261 B
CMake
find_program(SCCACHE_EXECUTABLE sccache)
|
|
|
|
if(SCCACHE_EXECUTABLE)
|
|
set(CMAKE_C_COMPILER_LAUNCHER "${SCCACHE_EXECUTABLE}" CACHE FILEPATH "")
|
|
set(CMAKE_CXX_COMPILER_LAUNCHER "${SCCACHE_EXECUTABLE}" CACHE FILEPATH "")
|
|
message(STATUS "sccache enabled")
|
|
endif()
|