From a761b772c8294858590c4abced272d04bd58aad3 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 2 Aug 2018 18:10:01 +0200 Subject: Make worker generic --- ice40/main.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ice40') diff --git a/ice40/main.cc b/ice40/main.cc index 358b46ba..4a2e9532 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -406,9 +406,11 @@ int main(int argc, char *argv[]) if (vm.count("json")) { std::string filename = vm["json"].as(); std::string pcf = ""; - if (vm.count("pcf")) + w.load_json(filename); + if (vm.count("pcf")) { pcf = vm["pcf"].as(); - w.load_json(filename, pcf); + w.load_pcf(pcf); + } } w.show(); -- cgit v1.2.3