Skip prelading on standalone mode
authorHyungju Lee <leee.lee@samsung.com>
Wed, 16 Oct 2019 22:43:01 +0000 (07:43 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Wed, 16 Oct 2019 22:46:20 +0000 (07:46 +0900)
Change-Id: If53e8063e1f84edfc360c1d395856bf65a223d37

NativeLauncher/launcher/dotnet/dotnet_launcher.cc

index 5bfa143..16a9865 100644 (file)
@@ -392,11 +392,13 @@ int CoreRuntime::preinitialize(bool standalone)
                } \
        } while (0)
 
-       std::ifstream preloadList(AOT_PRELOAD_PATH);
-       if (preloadList) {
-               std::string path;
-               while (getline(preloadList, path)) {
-                       PRELOAD_IMAGE(absolutePath(path).c_str());
+       if(!standalone) {
+               std::ifstream preloadList(AOT_PRELOAD_PATH);
+               if (preloadList) {
+                       std::string path;
+                       while (getline(preloadList, path)) {
+                               PRELOAD_IMAGE(absolutePath(path).c_str());
+                       }
                }
        }