Allow lazy Cxx modules to not initialize

Reviewed By: mhorowitz

Differential Revision: D4851596

fbshipit-source-id: cf5f5c51b9aaa0da96f7ab6fba1277b72c988400
This commit is contained in:
Pieter De Baets authored and Facebook Github Bot committed 2017-04-08 15:18:08 -07:00
1 parent e67b8fe761
commit f3dfd616f4
3 files changed
+12 -10

No files matched your search

+1 -1
View File
@@ -105,7 +105,7 @@ folly::Optional<ModuleConfig> ModuleRegistry::getConfig(const std::string& name)
}
}
if (config.size() == 1) {
if (config.size() == 2 && config[1].empty()) {
// no constants or methods
return nullptr;
} else {