From cecd677bd8ac3b8eb1ae44a0f6d35d3f69187c29 Mon Sep 17 00:00:00 2001 From: messense Date: Tue, 21 Jun 2022 10:54:38 +0800 Subject: [PATCH] Remove unneeded code for Emscripten after #978 --- src/compile.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/compile.rs b/src/compile.rs index d95d3b997..5f1a91253 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -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())