Skip to main content

compile_c

Function compile_c 

Source
pub fn compile_c(
    c_code: &str,
    config: &DiffTestConfig,
) -> Result<(TempDir, PathBuf)>
Expand description

Compile C source code with gcc and return the temp directory + binary path.

The caller owns the returned TempDir; dropping it cleans up all files.