Skip to content

Commit

Permalink
mock em*
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Nov 19, 2024
1 parent c6353a1 commit 44be097
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/__EMSCRIPTEN__.embed/cpython3.11.diff
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
-#ifdef MS_WINDOWS
-int
-wmain(int argc, wchar_t **argv)
+#if __PYDK__
+#if defined(PYDK)
+#include "pycore_call.h" // _PyObject_CallNoArgs()
+#include "pycore_initconfig.h" // _PyArgv
+#include "pycore_interp.h" // _PyInterpreterState.sysdict
Expand Down Expand Up @@ -123,7 +123,7 @@
return Py_BytesMain(argc, argv);
}
-#endif
+#endif //#if __PYDK__
+#endif // PYDK
--- Python-3.11.5/Python/sysmodule.c 2023-08-24 14:09:18.000000000 +0200
+++ Python-3.11.5-wasm/Python/sysmodule.c 2023-09-09 22:33:10.196291366 +0200
@@ -49,7 +49,7 @@
Expand Down
2 changes: 2 additions & 0 deletions wasisdk/bin/emconfigure
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
CONFIGURE=true $@ --host $(arch) --target=wasm32-unknown-wasi --with-template=wasi
2 changes: 2 additions & 0 deletions wasisdk/bin/emmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
$@

0 comments on commit 44be097

Please sign in to comment.