File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 21
21
#include " lld/Common/Strings.h"
22
22
#include " lld/Common/Version.h"
23
23
#include " llvm/ADT/Twine.h"
24
+ #include " llvm/Config/llvm-config.h"
24
25
#include " llvm/Object/Wasm.h"
25
26
#include " llvm/Option/Arg.h"
26
27
#include " llvm/Option/ArgList.h"
@@ -379,8 +380,9 @@ static void readConfigs(opt::InputArgList &args) {
379
380
config->importTable = args.hasArg (OPT_import_table);
380
381
config->ltoo = args::getInteger (args, OPT_lto_O, 2 );
381
382
config->ltoPartitions = args::getInteger (args, OPT_lto_partitions, 1 );
382
- config->ltoNewPassManager = args.hasFlag (OPT_lto_new_pass_manager,
383
- OPT_no_lto_new_pass_manager, false );
383
+ config->ltoNewPassManager =
384
+ args.hasFlag (OPT_lto_new_pass_manager, OPT_no_lto_new_pass_manager,
385
+ LLVM_ENABLE_NEW_PASS_MANAGER);
384
386
config->ltoDebugPassManager = args.hasArg (OPT_lto_debug_pass_manager);
385
387
config->mapFile = args.getLastArgValue (OPT_Map);
386
388
config->optimize = args::getInteger (args, OPT_O, 0 );
You can’t perform that action at this time.
0 commit comments