From 41385c5159441b83f6a1bd60e26a989141ca655b Mon Sep 17 00:00:00 2001 From: Konstantin Bogdanov Date: Mon, 16 Dec 2024 01:10:37 +0100 Subject: [PATCH] Add missing file --- rust/chcache/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 rust/chcache/CMakeLists.txt 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()