mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
oilgen: set DRGN_ENABLE_TYPE_ITERATOR
This commit is contained in:
parent
f6906b4f36
commit
33f51afa36
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user