[compiler-rt] [sanitizer_common] Implement address sanitizer on AIX: add platform specific functionality (4/n) (PR #131868)

Hubert Tong via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 24 10:42:32 PDT 2025


================
@@ -79,7 +79,8 @@ bool SupportsColoredOutput(fd_t fd);
 const char *GetPwd();
 bool FileExists(const char *filename);
 bool DirExists(const char *path);
-char *FindPathToBinary(const char *name);
+char *FindPathToBinaryOrLibrary(const char *name,
+                                const char *env_string = "PATH");
----------------
hubert-reinterpretcast wrote:

```suggestion
char *FindPathToBinaryOrLibrary(const char *name, const char *env_string);
inline char *FindPathToBinary(const char *name) {
  return FindPathToBinaryOrLibrary(name, "PATH");
}
```

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


More information about the llvm-commits mailing list