skip AOT if skip optimization option is enabled
authorWoongsuk Cho <ws77.cho@samsung.com>
Tue, 3 Sep 2019 05:16:42 +0000 (14:16 +0900)
committer조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Fri, 20 Sep 2019 05:48:28 +0000 (14:48 +0900)
NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc

index 3801a84..893bce1 100644 (file)
@@ -36,6 +36,14 @@ typedef struct Metadata {
 
 extern "C" int PKGMGR_MDPARSER_PLUGIN_INSTALL(const char *pkgId, const char *appId, GList *list)
 {
 
 extern "C" int PKGMGR_MDPARSER_PLUGIN_INSTALL(const char *pkgId, const char *appId, GList *list)
 {
+       int skipOpt = false;
+       if (!pkgmgr_installer_info_get_skip_optimization(&skipOpt)) {
+               if (skipOpt) {
+                       _DBG("Skip dotnet AOT");
+                       return 0;
+               }
+       }
+
        GList *tag = NULL;
        bool mdValue = false;
        Metadata *mdInfo = NULL;
        GList *tag = NULL;
        bool mdValue = false;
        Metadata *mdInfo = NULL;