clangformat
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
da1ecf0813
commit
399c24c805
@ -126,13 +126,14 @@ Arch::Arch(ArchArgs args) : args(args)
|
|||||||
} else {
|
} else {
|
||||||
// Default to first package.
|
// Default to first package.
|
||||||
NPNR_ASSERT(chip_info->packages.size() > 0);
|
NPNR_ASSERT(chip_info->packages.size() > 0);
|
||||||
if(chip_info->packages.size() == 1) {
|
if (chip_info->packages.size() == 1) {
|
||||||
IdString package_name(chip_info->packages[0].package);
|
IdString package_name(chip_info->packages[0].package);
|
||||||
this->args.package = package_name.str(this);
|
this->args.package = package_name.str(this);
|
||||||
package_index = 0;
|
package_index = 0;
|
||||||
} else {
|
} else {
|
||||||
log_info("Package must be specified (with --package arg) when multiple packages are available, packages:\n");
|
log_info(
|
||||||
for(const auto &package : chip_info->packages) {
|
"Package must be specified (with --package arg) when multiple packages are available, packages:\n");
|
||||||
|
for (const auto &package : chip_info->packages) {
|
||||||
log_info(" - %s\n", IdString(package.package).c_str(this));
|
log_info(" - %s\n", IdString(package.package).c_str(this));
|
||||||
}
|
}
|
||||||
log_error("--package is required!\n");
|
log_error("--package is required!\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user