================
@@ -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))
----------------
yxsamliu wrote:

removed setting default value and added check for integers

https://github.com/llvm/llvm-project/pull/135229
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to