mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
21 lines
408 B
CMake
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()
|