]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127146: Emscripten Include compiler version in _PYTHON_HOST_PLATFORM (#127992)
authorHood Chatham <roberthoodchatham@gmail.com>
Tue, 17 Dec 2024 23:17:09 +0000 (00:17 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Dec 2024 23:17:09 +0000 (07:17 +0800)
Modifies _PYTHON_HOST_PLATFORM to include the compiler version under
Emscripten. The Emscripten compiler version is the platform version
compatibility identifier.

configure
configure.ac

index 57be576e3cae99bc582341689a508266986e2df6..6df1116fc600f2a6c93348ca0725551f9b6eec83 100755 (executable)
--- a/configure
+++ b/configure
@@ -4545,6 +4545,9 @@ printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
        *-*-vxworks*)
                _host_ident=$host_cpu
                ;;
+       *-*-emscripten)
+               _host_ident=$(emcc -dumpversion)-$host_cpu
+               ;;
        wasm32-*-* | wasm64-*-*)
                _host_ident=$host_cpu
                ;;
index bd0221481c53413e12a29813ab63dab842d00ca2..8295b59b8e45fb90a0342bb2cfc3752fd54d0a8d 100644 (file)
@@ -793,6 +793,9 @@ if test "$cross_compiling" = yes; then
        *-*-vxworks*)
                _host_ident=$host_cpu
                ;;
+       *-*-emscripten)
+               _host_ident=$(emcc -dumpversion)-$host_cpu
+               ;;
        wasm32-*-* | wasm64-*-*)
                _host_ident=$host_cpu
                ;;