[all-commits] [llvm/llvm-project] 812828: [WebAssembly] Use wasm-opt and LTO libraries when ...

Dan Gohman via All-commits all-commits at lists.llvm.org
Fri Nov 22 23:22:03 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 812828984c10857a4cd260eb638c52a4411f9143
      https://github.com/llvm/llvm-project/commit/812828984c10857a4cd260eb638c52a4411f9143
  Author: Dan Gohman <sunfish at mozilla.com>
  Date:   2019-11-22 (Fri, 22 Nov 2019)

  Changed paths:
    M clang/lib/Driver/ToolChains/WebAssembly.cpp
    A clang/test/Driver/wasm-toolchain-lto.c

  Log Message:
  -----------
  [WebAssembly] Use wasm-opt and LTO libraries when available.

When there's a wasm-opt in the PATH, run the it to optimize LLVM's
output. This fixes PR43796.

And, add an "llvm-lto" directory to the sysroot library search paths,
so that sysroots can provide LTO-enabled system libraries.

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




More information about the All-commits mailing list