[clang] [llvm] [Clang] Add env var for nvptx-arch/amdgpu-arch timeout (PR #102521)
Joel E. Denny via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 16:02:30 PDT 2024
================
@@ -116,6 +117,15 @@ ToolChain::executeToolChainProgram(StringRef Executable,
};
std::string ErrorMessage;
+ int SecondsToWait = DefaultSecondsToWait;
+ if (std::optional<std::string> Str =
+ llvm::sys::Process::GetEnv("CLANG_TOOL_CHAIN_PROGRAM_WAIT")) {
+ int Val = std::atoi(Str->c_str());
+ if (Val > 0)
+ SecondsToWait = Val;
+ else
+ SecondsToWait = 0; // infinite
----------------
jdenny-ornl wrote:
Applied. Thanks.
https://github.com/llvm/llvm-project/pull/102521
More information about the llvm-commits
mailing list