https://bugs.llvm.org/show_bug.cgi?id=45602
Bug ID: 45602
Summary: [WebAssembly] wasm-opt strips symbol names when
optimizing
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
If wasm-opt is present on PATH, it is automatically invoked after wasm-ld. It
reuses the -Ox flag from clang to determine its optimization level. Anything
other than -O0 leads to wasm-opt stripping the names section. This makes
debugging an optimized build more awkward.
`clang foo.cpp -g -O1 -o foo.wasm --target=wasm32 -v` does not have a names
section
`clang foo.cpp -g -O0 -o foo.wasm --target=wasm32 -v` does still have symbols
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs