cmake: enable compiler caching support for rust libraries

This commit is contained in:
jpk68
2026-08-12 12:48:31 -04:00
parent 13a877fad6
commit 67d99a9835
+1 -2
View File
@@ -69,8 +69,7 @@ elseif (COMPILER_CACHE STREQUAL "auto")
message(STATUS "Using sccache: ${SCCACHE}")
set(CMAKE_C_COMPILER_LAUNCHER "${SCCACHE}")
set(CMAKE_CXX_COMPILER_LAUNCHER "${SCCACHE}")
# Remove this line and uncomment the one below when FCMP++ Rust libraries are merged.
# set(ENV{RUSTC_WRAPPER} "${SCCACHE}")
set(ENV{RUSTC_WRAPPER} "${SCCACHE}")
elseif (CCACHE)
message(STATUS "Using ccache: ${CCACHE}")
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE}")