Change the optimization options for crossgen2 (#409)
author최종헌/Common Platform Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Wed, 25 May 2022 21:36:03 +0000 (06:36 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 25 May 2022 21:36:03 +0000 (06:36 +0900)
Change-Id: Ic9588655352bc3e439e5432455e4a433d5c0ec19

NativeLauncher/tool/ni_common.cc

index 80f1f6c..e32f305 100644 (file)
@@ -78,6 +78,7 @@ static const char* CROSSGEN_OPT_SINGLE_FILE_COMPILATION = "--single-file-compila
 //static const char* CROSSGEN_OPT_PARALLELISM_COUNT = "5";
 static const char* CROSSGEN_OPT_RESILIENT = "--resilient";
 static const char* CROSSGEN_OPT_OPTIMIZE = "-O";
+static const char* CROSSGEN_OPT_OPTIMIZE_TIME = "--Ot";
 static const char* CROSSGEN_OPT_INPUTBUBBLE = "--inputbubble";
 static const char* CROSSGEN_OPT_COMPILE_BUBBLE_GENERICS = "--compilebubblegenerics";
 static const char* CROSSGEN_OPT_VERBOSE = "--verbose";
@@ -392,7 +393,7 @@ static void makeArgs(std::vector<const char*>& args, const std::vector<std::stri
        //args.push_back(OPT_PARALLELISM_COUNT);
        args.push_back(CROSSGEN_OPT_RESILIENT);
 
-       args.push_back(CROSSGEN_OPT_OPTIMIZE);
+       args.push_back(CROSSGEN_OPT_OPTIMIZE_TIME);
 
        if (opt->flags & NI_FLAGS_INPUT_BUBBLE) {
                args.push_back(CROSSGEN_OPT_INPUTBUBBLE);