default placement only if not set
This commit is contained in:
parent
226885a58f
commit
ff257a0929
@ -209,8 +209,6 @@ void CommandHandler::setupContext(Context *ctx)
|
|||||||
log_error("Placer algorithm '%s' is not supported (available options: %s)\n", placer.c_str(),
|
log_error("Placer algorithm '%s' is not supported (available options: %s)\n", placer.c_str(),
|
||||||
boost::algorithm::join(Arch::availablePlacers, ", ").c_str());
|
boost::algorithm::join(Arch::availablePlacers, ", ").c_str());
|
||||||
ctx->settings[ctx->id("placer")] = placer;
|
ctx->settings[ctx->id("placer")] = placer;
|
||||||
} else {
|
|
||||||
ctx->settings[ctx->id("placer")] = Arch::defaultPlacer;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vm.count("cstrweight")) {
|
if (vm.count("cstrweight")) {
|
||||||
@ -241,6 +239,8 @@ void CommandHandler::setupContext(Context *ctx)
|
|||||||
ctx->settings[ctx->id("slack_redist_iter")] = "0";
|
ctx->settings[ctx->id("slack_redist_iter")] = "0";
|
||||||
if (ctx->settings.find(ctx->id("auto_freq")) == ctx->settings.end())
|
if (ctx->settings.find(ctx->id("auto_freq")) == ctx->settings.end())
|
||||||
ctx->settings[ctx->id("auto_freq")] = std::to_string(false);
|
ctx->settings[ctx->id("auto_freq")] = std::to_string(false);
|
||||||
|
if (ctx->settings.find(ctx->id("placer")) == ctx->settings.end())
|
||||||
|
ctx->settings[ctx->id("placer")] = Arch::defaultPlacer;
|
||||||
|
|
||||||
ctx->settings[ctx->id("arch.name")] = std::string(ctx->archId().c_str(ctx));
|
ctx->settings[ctx->id("arch.name")] = std::string(ctx->archId().c_str(ctx));
|
||||||
ctx->settings[ctx->id("arch.type")] = std::string(ctx->archArgsToId(ctx->archArgs()).c_str(ctx));
|
ctx->settings[ctx->id("arch.type")] = std::string(ctx->archArgsToId(ctx->archArgs()).c_str(ctx));
|
||||||
|
Loading…
Reference in New Issue
Block a user