Compare commits
13 commits
11ddbc43c7
...
e2653a3245
Author | SHA1 | Date | |
---|---|---|---|
|
e2653a3245 | ||
|
f8b0ab45b0 | ||
|
01dafcea0f | ||
|
18ddab26ba | ||
|
2842c2839f | ||
|
41139d09dc | ||
|
2edd9defd1 | ||
|
1cb394674a | ||
|
435514654c | ||
|
86c711c36e | ||
|
1a769b8162 | ||
|
dfca5e7c8f | ||
|
747ad535a2 |
|
@ -653,19 +653,21 @@ impl FormalArgs {
|
|||
self.sby.display()
|
||||
)))
|
||||
};
|
||||
fs::write(
|
||||
cache_file,
|
||||
serde_json::to_string_pretty(&FormalCache {
|
||||
version: FormalCacheVersion::CURRENT,
|
||||
contents_hash: contents_hash.unwrap(),
|
||||
stdout_stderr: captured_output,
|
||||
result: match &result {
|
||||
Ok(FormalOutput { verilog: _ }) => Ok(FormalCacheOutput {}),
|
||||
Err(error) => Err(error.to_string()),
|
||||
},
|
||||
})
|
||||
.expect("serialization shouldn't ever fail"),
|
||||
)?;
|
||||
if do_cache {
|
||||
fs::write(
|
||||
cache_file,
|
||||
serde_json::to_string_pretty(&FormalCache {
|
||||
version: FormalCacheVersion::CURRENT,
|
||||
contents_hash: contents_hash.unwrap(),
|
||||
stdout_stderr: captured_output,
|
||||
result: match &result {
|
||||
Ok(FormalOutput { verilog: _ }) => Ok(FormalCacheOutput {}),
|
||||
Err(error) => Err(error.to_string()),
|
||||
},
|
||||
})
|
||||
.expect("serialization shouldn't ever fail"),
|
||||
)?;
|
||||
}
|
||||
result
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue