We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff16d6a commit fa94bb3Copy full SHA for fa94bb3
1 file changed
src/sw/driver/target/base.cpp
@@ -450,7 +450,11 @@ String Target::getConfig() const
450
path Target::getTargetsDir() const
451
{
452
auto d = getMainBuild().getBuildDirectory() / "out" / getConfig();
453
- write_file(d / "cfg.json", nlohmann::json::parse(ts.toString(TargetSettings::Json)).dump(4));
+ try
454
+ {
455
+ write_file(d / "cfg.json", nlohmann::json::parse(ts.toString(TargetSettings::Json)).dump(4));
456
+ }
457
+ catch (...) {} // write once
458
return d;
459
}
460
0 commit comments