mirror of
https://github.com/wownero/wownero.git
synced 2026-11-22 08:34:03 +01:00
cmake: enable compiler caching support for rust libraries
This commit is contained in:
+1
-2
@@ -69,8 +69,7 @@ elseif (COMPILER_CACHE STREQUAL "auto")
|
|||||||
message(STATUS "Using sccache: ${SCCACHE}")
|
message(STATUS "Using sccache: ${SCCACHE}")
|
||||||
set(CMAKE_C_COMPILER_LAUNCHER "${SCCACHE}")
|
set(CMAKE_C_COMPILER_LAUNCHER "${SCCACHE}")
|
||||||
set(CMAKE_CXX_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)
|
elseif (CCACHE)
|
||||||
message(STATUS "Using ccache: ${CCACHE}")
|
message(STATUS "Using ccache: ${CCACHE}")
|
||||||
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE}")
|
set(CMAKE_C_COMPILER_LAUNCHER "${CCACHE}")
|
||||||
|
|||||||
Reference in New Issue
Block a user