Display warning only if gui is not used

This commit is contained in:
Miodrag Milanovic 2018-08-01 08:26:50 +02:00
parent 8293569c32
commit 009bed51cb

View File

@ -375,8 +375,11 @@ int main(int argc, char *argv[])
ctx->target_freq = vm["freq"].as<double>() * 1e6; ctx->target_freq = vm["freq"].as<double>() * 1e6;
ctx->user_freq = true; ctx->user_freq = true;
} else { } 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; ctx->timing_driven = true;
if (vm.count("no-tmdriv")) if (vm.count("no-tmdriv"))