StephenFan added a comment. Why not use `env PATH=` in the lit run line to clear the `PATH` env variable? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127589/new/ https://reviews.llvm.org/D127589