[all-commits] [llvm/llvm-project] 8f1e21: [WebAssembly] Find wasm-opt with GetProgramPath

Dan Gohman via All-commits all-commits at lists.llvm.org
Mon Dec 2 11:48:56 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f1e2151b8e923345a18aa3025a7d074e134768b
      https://github.com/llvm/llvm-project/commit/8f1e2151b8e923345a18aa3025a7d074e134768b
  Author: Dan Gohman <sunfish at mozilla.com>
  Date:   2019-12-02 (Mon, 02 Dec 2019)

  Changed paths:
    M clang/lib/Driver/ToolChains/WebAssembly.cpp

  Log Message:
  -----------
  [WebAssembly] Find wasm-opt with GetProgramPath

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

Differential Revision: https://reviews.llvm.org/D70780




More information about the All-commits mailing list