diff options
Diffstat (limited to 'ice40/main.cc')
-rw-r--r-- | ice40/main.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ice40/main.cc b/ice40/main.cc index 2818a3ad..8bab360d 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -79,8 +79,9 @@ void Ice40CommandHandler::validate() void Ice40CommandHandler::customAfterLoad(Context *ctx) { if (vm.count("pcf")) { - std::ifstream pcf(vm["pcf"].as<std::string>()); - if (!apply_pcf(ctx, pcf)) + std::string filename = vm["pcf"].as<std::string>(); + std::ifstream pcf(filename); + if (!apply_pcf(ctx, filename, pcf)) log_error("Loading PCF failed.\n"); } } |