MCPcopy Create free account
hub / github.com/Aromatic05/we-layerd / reset_cmake_cache_if_source_changed

Function reset_cmake_cache_if_source_changed

build.rs:109–129  ·  view source on GitHub ↗
(
    build_root: &Path,
    upstream_root: &Path,
)

Source from the content-addressed store, hash-verified

107 if !artifact.is_file() {
108 panic!("missing prebuilt renderer artifact at {}", artifact.display());
109 }
110 }
111}
112
113fn emit_upstream_rerun_hints(upstream_root: &Path) {
114 for path in [
115 upstream_root.join("CMakeLists.txt"),
116 upstream_root.join("src"),
117 upstream_root.join("include"),
118 upstream_root.join("standalone_layer_view"),
119 ] {
120 println!("cargo:rerun-if-changed={}", path.display());
121 }
122}
123
124fn run(command: &mut Command, description: &str) {
125 let status = command.status().unwrap_or_else(|err| {
126 panic!("failed to {}: {}", description, err);
127 });
128 if !status.success() {
129 panic!("failed to {}: {}", description, status);
130 }
131}
132

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected