Add -no-threads option that negates the effect of -threads.
llvm-svn: 287072
This commit is contained in:
parent
c91f716643
commit
23f441d3ac
|
@ -496,7 +496,7 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) {
|
|||
Config->SaveTemps = Args.hasArg(OPT_save_temps);
|
||||
Config->Shared = Args.hasArg(OPT_shared);
|
||||
Config->Target1Rel = getArg(Args, OPT_target1_rel, OPT_target1_abs, false);
|
||||
Config->Threads = Args.hasArg(OPT_threads);
|
||||
Config->Threads = getArg(Args, OPT_threads, OPT_no_threads, false);
|
||||
Config->Trace = Args.hasArg(OPT_trace);
|
||||
Config->Verbose = Args.hasArg(OPT_verbose);
|
||||
Config->WarnCommon = Args.hasArg(OPT_warn_common);
|
||||
|
|
|
@ -127,6 +127,9 @@ def no_gc_sections: F<"no-gc-sections">,
|
|||
def no_gnu_unique: F<"no-gnu-unique">,
|
||||
HelpText<"Disable STB_GNU_UNIQUE symbol binding">;
|
||||
|
||||
def no_threads: F<"no-threads">,
|
||||
HelpText<"Do not run the linker multi-threaded">;
|
||||
|
||||
def no_whole_archive: F<"no-whole-archive">,
|
||||
HelpText<"Restores the default behavior of loading archive members">;
|
||||
|
||||
|
@ -188,7 +191,7 @@ def target1_abs: F<"target1-abs">, HelpText<"Interpret R_ARM_TARGET1 as R_ARM_AB
|
|||
|
||||
def target2: J<"target2=">, MetaVarName<"<type>">, HelpText<"Interpret R_ARM_TARGET2 as <type>, where <type> is one of rel, abs, or got-rel.">;
|
||||
|
||||
def threads: F<"threads">, HelpText<"Enable use of threads">;
|
||||
def threads: F<"threads">, HelpText<"Run the linker multi-threaded">;
|
||||
|
||||
def trace: F<"trace">, HelpText<"Print the names of the input files">;
|
||||
|
||||
|
|
Loading…
Reference in New Issue