diff --git a/rust/chcache/CMakeLists.txt b/rust/chcache/CMakeLists.txt new file mode 100644 index 00000000000..a23b0afe140 --- /dev/null +++ b/rust/chcache/CMakeLists.txt @@ -0,0 +1,19 @@ +if (COMPILER_CACHE STREQUAL "chcache") + configure_file(".cargo/config.toml.in" ".cargo/config.toml" @ONLY) + + corrosion_import_crate( + MANIFEST_PATH Cargo.toml + PROFILE release + LOCKED + FLAGS --offline + ) + corrosion_set_env_vars( + chcache + RUSTFLAGS= + RUST_CFLAGS= + RUST_CXXFLAGS= + CFLAGS= + CXXFLAGS= + ) + corrosion_set_hostbuild(chcache) +endif()