Auto merge of #43344 - tlively:wasm-debug, r=alexcrichton
Pass debugging arguments to emcc Tells emcc to enable assertions and debugging information for wasm32-experimental-emscripten. This makes the codegen issues caused by LLVM bug 33824 manifest more frequently at runtime and improves the wasm debugging experience.
This commit is contained in:
commit
e49a9483de
@ -18,7 +18,10 @@ pub fn target() -> Result<Target, String> {
|
||||
vec!["-s".to_string(),
|
||||
"WASM=1".to_string(),
|
||||
"-s".to_string(),
|
||||
"ERROR_ON_UNDEFINED_SYMBOLS=1".to_string()]);
|
||||
"ASSERTIONS=1".to_string(),
|
||||
"-s".to_string(),
|
||||
"ERROR_ON_UNDEFINED_SYMBOLS=1".to_string(),
|
||||
"-g3".to_string()]);
|
||||
|
||||
let opts = TargetOptions {
|
||||
linker: cmd("emcc"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user