Skip to content

Commit b812b9c

Browse files
committed
First draft of wasm-opt warning
1 parent 73ef397 commit b812b9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/Driver/ToolChains/WebAssembly.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ void wasm::Linker::ConstructJob(Compilation &C, const JobAction &JA,
180180
if (WasmOptPath == "wasm-opt") {
181181
WasmOptPath = {};
182182
}
183+
if (WasmOptPath.empty()) {
184+
printf("warning: wasm-opt not found but was requested\n");
185+
}
183186
}
184187

185188
if (!WasmOptPath.empty()) {

0 commit comments

Comments
 (0)