From 009bed51cb50d178eda7bdf5b2f77966e230323a Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 1 Aug 2018 08:26:50 +0200 Subject: Display warning only if gui is not used --- ice40/main.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ice40') 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() * 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")) -- cgit v1.2.3