oilgen: set DRGN_ENABLE_TYPE_ITERATOR

This commit is contained in:
Jake Hillion 2023-01-19 03:36:10 -08:00 committed by Jake Hillion
parent f6906b4f36
commit 33f51afa36

View File

@ -16,6 +16,7 @@
#include <glog/logging.h>
#include <cstdlib>
#include <filesystem>
#include <iostream>
@ -77,6 +78,12 @@ int main(int argc, char* argv[]) {
}
fs::path primaryObject = argv[optind];
if ((setenv("DRGN_ENABLE_TYPE_ITERATOR", "1", 1)) < 0) {
std::cerr << "Failed to set environment variable\
DRGN_ENABLE_TYPE_ITERATOR\n";
exit(EXIT_FAILURE);
}
OIGenerator oigen;
oigen.setOutputPath(std::move(outputPath));