Browse Source

emscripten: Include wasm64 or wasm32 in DTOOL_PLATFORM

rdb 2 years ago
parent
commit
67d6bf675a
1 changed files with 6 additions and 0 deletions
  1. 6 0
      dtool/src/dtoolbase/dtool_platform.h

+ 6 - 0
dtool/src/dtoolbase/dtool_platform.h

@@ -66,7 +66,13 @@
 #endif
 
 #elif defined(__EMSCRIPTEN__)
+#if defined(__wasm64__)
+#define DTOOL_PLATFORM "emscripten_wasm64"
+#elif defined(__wasm32__)
+#define DTOOL_PLATFORM "emscripten_wasm32"
+#else
 #define DTOOL_PLATFORM "emscripten"
+#endif
 
 #elif defined(__aarch64__)
 #define DTOOL_PLATFORM "linux_aarch64"