MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / verify

Function verify

crates/test/src/c.rs:172–190  ·  view source on GitHub ↗
(runner: &Runner, verify: &Verify<'_>, compiler: PathBuf)

Source from the content-addressed store, hash-verified

170}
171
172fn verify(runner: &Runner, verify: &Verify<'_>, compiler: PathBuf) -> Result<()> {
173 let mut cmd = Command::new(compiler);
174 cmd.arg(
175 verify
176 .bindings_dir
177 .join(format!("{}.c", verify.world.to_snake_case())),
178 )
179 .arg("-I")
180 .arg(&verify.bindings_dir)
181 .arg("-Wall")
182 .arg("-Wextra")
183 .arg("-Werror")
184 .arg("-Wc++-compat")
185 .arg("-Wno-unused-parameter")
186 .arg("-c")
187 .arg("-o")
188 .arg(verify.artifacts_dir.join("tmp.o"));
189 runner.run_command(&mut cmd)
190}

Callers 3

verifyMethod · 0.70
run_world_codegen_testFunction · 0.50

Calls 3

newFunction · 0.85
joinMethod · 0.80
run_commandMethod · 0.80

Tested by

no test coverage detected