From: kgv Date: Sun, 21 Mar 2021 21:27:36 +0000 (+0300) Subject: dversion - add WebAssembly info X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=2f06c9bb47116ce2beac0a68aa4f52455c6007d1;p=occt-copy.git dversion - add WebAssembly info --- diff --git a/src/Draw/Draw_BasicCommands.cxx b/src/Draw/Draw_BasicCommands.cxx index 138e8831c8..d9d84e3ff6 100644 --- a/src/Draw/Draw_BasicCommands.cxx +++ b/src/Draw/Draw_BasicCommands.cxx @@ -437,6 +437,12 @@ static Standard_Integer dversion(Draw_Interpretor& di, Standard_Integer, const c #else di << "Architecture: ARM 32-bit\n"; #endif +#elif defined(__EMSCRIPTEN__) +#if defined(__LP64__) + di << "Architecture: WASM 64-bit\n"; + #else + di << "Architecture: WASM 32-bit\n"; + #endif #else di << "Architecture: unrecognized\n"; #endif @@ -460,6 +466,8 @@ static Standard_Integer dversion(Draw_Interpretor& di, Standard_Integer, const c #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) #include di << "OS: BSD (BSD = " << BSD << ")\n"; +#elif defined(__EMSCRIPTEN__) + di << "OS: WebAssembly (Emscripten SDK " << __EMSCRIPTEN_major__ << "." << __EMSCRIPTEN_minor__ << "." << __EMSCRIPTEN_tiny__ << ")\n"; #else di << "OS: unrecognized\n"; #endif