aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-06-13 20:42:11 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-06-13 20:42:11 +0200
commit03dff10cbde4c55e4ac9b53a01ba84f4bdac169b (patch)
tree9777bd23e29585b8dbf10cfb64f41823c4c1f67c /generic
parent4de147d9e42d7c932773544011a36e4550530a9e (diff)
downloadnextpnr-03dff10cbde4c55e4ac9b53a01ba84f4bdac169b.tar.gz
nextpnr-03dff10cbde4c55e4ac9b53a01ba84f4bdac169b.tar.bz2
nextpnr-03dff10cbde4c55e4ac9b53a01ba84f4bdac169b.zip
Load properties from json and propagate to context create
Diffstat (limited to 'generic')
-rw-r--r--generic/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/main.cc b/generic/main.cc
index c203f35c..8ab3b0e8 100644
--- a/generic/main.cc
+++ b/generic/main.cc
@@ -32,7 +32,7 @@ class GenericCommandHandler : public CommandHandler
public:
GenericCommandHandler(int argc, char **argv);
virtual ~GenericCommandHandler(){};
- std::unique_ptr<Context> createContext() override;
+ std::unique_ptr<Context> createContext(std::unordered_map<std::string,Property> &values) override;
void setupArchContext(Context *ctx) override{};
void customBitstream(Context *ctx) override;
@@ -51,7 +51,7 @@ po::options_description GenericCommandHandler::getArchOptions()
void GenericCommandHandler::customBitstream(Context *ctx) {}
-std::unique_ptr<Context> GenericCommandHandler::createContext()
+std::unique_ptr<Context> GenericCommandHandler::createContext(std::unordered_map<std::string,Property> &values)
{
return std::unique_ptr<Context>(new Context(chipArgs));
}