Files

21 lines
408 B
CMake

if (COMPILER_CACHE STREQUAL "chcache")
corrosion_import_crate(
MANIFEST_PATH Cargo.toml
PROFILE release
LOCKED
FLAGS "--config=${RUST_CONFIG_FILE}"
FLAGS --offline
)
corrosion_set_env_vars(
chcache
RUSTFLAGS=
RUST_CFLAGS=
RUST_CXXFLAGS=
CFLAGS=
CXXFLAGS=
)
corrosion_set_hostbuild(chcache)
endif()