generate native image files in the .native_image folder for the pkg aot.
[platform/core/dotnet/launcher.git] / NativeLauncher / installer-plugin / nitool.cc
index afae251..aac3d0e 100644 (file)
@@ -141,8 +141,11 @@ int main(int argc, char* argv[])
                        }
                }
        } 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);
        }