mirror of https://github.com/YosysHQ/nextpnr.git
gui: fix segfault when providing --sdc (#1682)
This commit is contained in:
parent
77ccf518d5
commit
4f5db1f7b9
|
|
@ -611,7 +611,7 @@ int CommandHandler::executeMain(std::unique_ptr<Context> ctx)
|
|||
if (vm.count("sdc")) {
|
||||
std::string sdc_filename = vm["sdc"].as<std::string>();
|
||||
std::ifstream sdc_stream(sdc_filename);
|
||||
ctx->read_sdc(sdc_stream);
|
||||
w.getContext()->read_sdc(sdc_stream);
|
||||
}
|
||||
|
||||
customAfterLoad(w.getContext());
|
||||
|
|
|
|||
Loading…
Reference in New Issue