nexus: Add error if device not specified
Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
parent
f41b4045d4
commit
629a06b0ae
@ -67,6 +67,9 @@ void NexusCommandHandler::customBitstream(Context *ctx)
|
|||||||
std::unique_ptr<Context> NexusCommandHandler::createContext(std::unordered_map<std::string, Property> &values)
|
std::unique_ptr<Context> NexusCommandHandler::createContext(std::unordered_map<std::string, Property> &values)
|
||||||
{
|
{
|
||||||
ArchArgs chipArgs;
|
ArchArgs chipArgs;
|
||||||
|
if (!vm.count("device")) {
|
||||||
|
log_error("device must be specified on the command line (e.g. --device LIFCL-40-9BG400CES)\n");
|
||||||
|
}
|
||||||
chipArgs.device = vm["device"].as<std::string>();
|
chipArgs.device = vm["device"].as<std::string>();
|
||||||
return std::unique_ptr<Context>(new Context(chipArgs));
|
return std::unique_ptr<Context>(new Context(chipArgs));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user