================
@@ -9360,6 +9362,19 @@ void LinkerWrapper::ConstructJob(Compilation &C, const
JobAction &JA,
CmdArgs.push_back(LinkArg);
addOffloadCompressArgs(Args, CmdArgs);
+
+ // Default to half of hardware threads if users do not specify it.
+ if (Arg *A = Args.getLastArg(options::OPT_offload_jobs_EQ))
----------------
jhuber6 wrote:
Isn't there an option that lets you default this? I guess it's a string, but
can use `to_string`. Would remove the control flow. Also need to parse it to
make sure it's an integer.
https://github.com/llvm/llvm-project/pull/135229
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits