[libcxx-commits] [libcxx] [libc++] Check zdump availability through executor (PR #216476)

Yihan Wang via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 27 08:07:10 PDT 2026


yronglin wrote:

> If you're simply checking if `zdump` executes correctly in the terminal, writing `exec` directly will result in an error. You need to write it like this:
> 
> ```python
> import shutil
> when = lambda cfg: shutil.which("zdump") is None
> ```

Sorry, I still misunderstood. It seems the PATH was modified when test was executed. Can `shutil` find `zdump`?

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


More information about the libcxx-commits mailing list