diff --git a/src/postamble.js b/src/postamble.js index 0396f8d5025c..da2781135dee 100644 --- a/src/postamble.js +++ b/src/postamble.js @@ -6,10 +6,6 @@ // === Auto-generated postamble setup entry stuff === -#if SUPPORT_BASE64_EMBEDDING || FORCE_FILESYSTEM -#include "base64Utils.js" -#endif - #if HEADLESS if (!ENVIRONMENT_IS_WEB) { #include "headlessCanvas.js" diff --git a/src/preamble.js b/src/preamble.js index a368db2c4361..ad0d001507b7 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -49,6 +49,10 @@ if (typeof WebAssembly != 'object') { #include "runtime_asan.js" #endif +#if SUPPORT_BASE64_EMBEDDING || FORCE_FILESYSTEM +#include "base64Utils.js" +#endif + // Wasm globals var wasmMemory; diff --git a/test/test_other.py b/test/test_other.py index 6a337f8f5796..00d9df153313 100644 --- a/test/test_other.py +++ b/test/test_other.py @@ -8917,6 +8917,10 @@ def do_test(cmd): def test_single_file_shell(self): self.do_runf('hello_world.c', emcc_args=['-sSINGLE_FILE']) + @requires_v8 + def test_single_file_shell_sync_compile(self): + self.do_runf('hello_world.c', emcc_args=['-sSINGLE_FILE', '-sWASM_ASYNC_COMPILATION=0']) + def test_emar_M(self): create_file('file1', ' ') create_file('file2', ' ')