Skip to content

Version defines for Emscripten 5.0.0 gives 4.0.24 #26226

@nzeemin

Description

@nzeemin

Version defines for Emscripten 5.0.0 gives 4.0.24:
__EMSCRIPTEN_major__ == 4, should be 5
__EMSCRIPTEN_minor__ == 0
__EMSCRIPTEN_tiny__ == 24, should be 0

Version of emscripten/emsdk:

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 5.0.0 (a7c5deabd7c88ba1c38ebe988112256775f944c6)
clang version 23.0.0git (https:/github.com/llvm/llvm-project 358db292cc6a9a8a5448a296f643312289f328d7)                                                                                                
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: C:\bin\emsdk\upstream\bin

Failing command line in full:
No fail

Full link command and output with -v appended:
Any emcc call.

#define STRINGIZE(_x) STRINGIZE_(_x)
#define STRINGIZE_(_x) #_x
...
        printf("built with Emscripten "
                STRINGIZE(__EMSCRIPTEN_major__) "." STRINGIZE(__EMSCRIPTEN_minor__) "." STRINGIZE(__EMSCRIPTEN_tiny__)
                " at " __DATE__ "\n");

gives:

built with Emscripten 4.0.24 at Feb  7 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions