[clang] [Clang] Add timeout for GPU detection utilities (PR #94751)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 7 06:21:37 PDT 2024


================
@@ -205,7 +205,7 @@ class ToolChain {
 
   /// Executes the given \p Executable and returns the stdout.
   llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>>
-  executeToolChainProgram(StringRef Executable) const;
+  executeToolChainProgram(StringRef Executable, unsigned Timeout = 0) const;
----------------
arsenm wrote:

Name this SecondsToWait to match ExecuteAndWait? 

https://github.com/llvm/llvm-project/pull/94751


More information about the cfe-commits mailing list