// Usage:
// [Command] --frontend [Frontend .so path] --frontend-arg ...
std::unique_ptr<FrontendZone> frontend_zone;
+ // TODO Allow users to update this variable (via command-line options)
+ cmdline::Vector backend_args;
// Simple argument parser (based on map)
std::map<std::string, std::function<void(const std::string &arg)>> argparse;
auto bundle = frontend->load();
- enco::Backend backend{std::cout};
+ auto backend = make_backend(backend_args);
- backend.compile(bundle.module(), bundle.data());
+ backend->compile(bundle.module(), bundle.data());
return 0;
}