gh-127146: Strip dash from Emscripten compiler version (#128557)

`emcc -dumpversion` will sometimes say e.g., `4.0.0-git` but in this case
uname does not include `-git` in the version string. Use cut to delete
everything after the dash.
This commit is contained in:
Hood Chatham 2025-01-06 23:26:35 +01:00 committed by GitHub
parent 616692d465
commit 61c1a2478e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

2
configure generated vendored
View File

@ -4595,7 +4595,7 @@ printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
_host_ident=$host_cpu
;;
*-*-emscripten)
_host_ident=$(emcc -dumpversion)-$host_cpu
_host_ident=$(emcc -dumpversion | cut -f1 -d-)-$host_cpu
;;
wasm32-*-* | wasm64-*-*)
_host_ident=$host_cpu

View File

@ -794,7 +794,7 @@ if test "$cross_compiling" = yes; then
_host_ident=$host_cpu
;;
*-*-emscripten)
_host_ident=$(emcc -dumpversion)-$host_cpu
_host_ident=$(emcc -dumpversion | cut -f1 -d-)-$host_cpu
;;
wasm32-*-* | wasm64-*-*)
_host_ident=$host_cpu