Skip to content

Commit

Permalink
Auto merge of #43344 - tlively:wasm-debug, r=alexcrichton
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Jul 22, 2017
2 parents 066a0ae + 6a3e322 commit e49a948
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/librustc_back/target/wasm32_experimental_emscripten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit e49a948

Please sign in to comment.