[PATCH] D70500: [WebAssembly] Enable use of wasm-opt and LTO-enabled system libraries
Derek Schuff via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 20 10:51:46 PST 2019
dschuff added inline comments.
Herald added a subscriber: ormris.
================
Comment at: clang/lib/Driver/ToolChains/WebAssembly.cpp:96
+ if (Arg *A = Args.getLastArg(options::OPT_O_Group)) {
+ if (const char *WasmOptPath = getenv("WASM_OPT")) {
+ StringRef OOpt = "s";
----------------
What would you think about adding a way to pass arguments through to wasm-opt on the command line, like we have for the linker, assembler, etc? Something like `-Wo,-O2` (or `-Ww` or whatever; analogous to `-Wl` and `-Wa`). That seems nicer than an env var, although it doesn't solve the problem of controlling whether to run the optimizer in the first place.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70500/new/
https://reviews.llvm.org/D70500
More information about the cfe-commits
mailing list