Skip to content

Commit

Permalink
Remove unneeded code for Emscripten after #978
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jun 21, 2022
1 parent e30dea3 commit cecd677
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,6 @@ fn compile_target(
}
}

if target.is_emscripten() {
// Workaround https://github.com/emscripten-core/emscripten/issues/17191
let cache_dir = dirs::cache_dir()
.unwrap_or_else(|| env::current_dir().expect("Failed to get current dir"))
.join(env!("CARGO_PKG_NAME"));
fs::create_dir_all(&cache_dir)?;
}

build_command
// We need to capture the json messages
.stdout(Stdio::piped())
Expand Down

0 comments on commit cecd677

Please sign in to comment.