diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-01 08:26:50 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-01 08:26:50 +0200 |
commit | 009bed51cb50d178eda7bdf5b2f77966e230323a (patch) | |
tree | a97484667c7315fd5f156807aa2a109ec4919ead /ice40 | |
parent | 8293569c3259d4d1747b8fc5db2ef79eb64cb0e0 (diff) | |
download | nextpnr-009bed51cb50d178eda7bdf5b2f77966e230323a.tar.gz nextpnr-009bed51cb50d178eda7bdf5b2f77966e230323a.tar.bz2 nextpnr-009bed51cb50d178eda7bdf5b2f77966e230323a.zip |
Display warning only if gui is not used
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/main.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ice40/main.cc b/ice40/main.cc index 01576cfd..f6ce9f6b 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -375,8 +375,11 @@ int main(int argc, char *argv[]) ctx->target_freq = vm["freq"].as<double>() * 1e6; ctx->user_freq = true; } else { - log_warning("Target frequency not specified. Will optimise for max frequency.\n"); - } +#ifndef NO_GUI + if (!vm.count("gui")) +#endif + log_warning("Target frequency not specified. Will optimise for max frequency.\n"); + } ctx->timing_driven = true; if (vm.count("no-tmdriv")) |