Skip to content

Commit 36e70cf

Browse files
authored
[LLD][ELF] Update ltoo optimization level to 0
1 parent d0987d6 commit 36e70cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/ELF/Driver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ static void readConfigs(opt::InputArgList &args) {
13071307
config->ltoValidateAllVtablesHaveTypeInfos =
13081308
args.hasFlag(OPT_lto_validate_all_vtables_have_type_infos,
13091309
OPT_no_lto_validate_all_vtables_have_type_infos, false);
1310-
config->ltoo = args::getInteger(args, OPT_lto_O, 2);
1310+
config->ltoo = args::getInteger(args, OPT_lto_O, 0);
13111311
if (config->ltoo > 3)
13121312
error("invalid optimization level for LTO: " + Twine(config->ltoo));
13131313
unsigned ltoCgo =

0 commit comments

Comments
 (0)