}
}
} else if (dllMode) {
- for (const std::string dll : args)
- createNiDll(dll, enableR2R);
+ for (const std::string dll : args) {
+ if (createNiDll(dll, enableR2R) != 0) {
+ fprintf(stderr, "Failed to generate NI file [%s]\n", dll.c_str());
+ }
+ }
} else if (dirMode) {
createNiUnderDirs(args.data(), args.size(), enableR2R);
}