This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Find wasm-opt with GetProgramPath
ClosedPublic

Authored by sunfish on Nov 27 2019, 6:08 AM.

Details

Summary

Instead of just searching for wasm-opt in PATH, use GetProgramPath, which checks the COMPILER_PATH environment variable, -B paths, and `PATH.

Diff Detail

Event Timeline

sunfish created this revision.Nov 27 2019, 6:08 AM
dschuff accepted this revision.Dec 2 2019, 9:34 AM
This revision is now accepted and ready to land.Dec 2 2019, 9:34 AM
This revision was automatically updated to reflect the committed changes.