diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-03 18:23:40 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-03 18:23:40 +0200 |
commit | e68ca65e9e0a1675a13e607a99f318ce5958c7e9 (patch) | |
tree | d67dffc52115992c5d77cb559756c56f77d6dffe /generic/main.cc | |
parent | 80e6b17ec9da25ff089a626b2fb5043876814307 (diff) | |
download | nextpnr-e68ca65e9e0a1675a13e607a99f318ce5958c7e9.tar.gz nextpnr-e68ca65e9e0a1675a13e607a99f318ce5958c7e9.tar.bz2 nextpnr-e68ca65e9e0a1675a13e607a99f318ce5958c7e9.zip |
Unify interfaces for gui
Diffstat (limited to 'generic/main.cc')
-rw-r--r-- | generic/main.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/main.cc b/generic/main.cc index 3b8b3fe6..8653da01 100644 --- a/generic/main.cc +++ b/generic/main.cc @@ -90,7 +90,8 @@ int main(int argc, char *argv[]) return 1; } - std::unique_ptr<Context> ctx = std::unique_ptr<Context>(new Context(ArchArgs{})); + ArchArgs chipArgs{}; + std::unique_ptr<Context> ctx = std::unique_ptr<Context>(new Context(chipArgs)); if (vm.count("verbose")) { ctx->verbose = true; @@ -107,7 +108,7 @@ int main(int argc, char *argv[]) #ifndef NO_GUI if (vm.count("gui")) { Application a(argc, argv); - MainWindow w(std::move(ctx)); + MainWindow w(std::move(ctx), chipArgs); w.show(); return a.exec(); |