mirror of https://github.com/python/cpython.git
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:
parent
616692d465
commit
61c1a2478e
|
@ -4595,7 +4595,7 @@ printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; }
|
||||||
_host_ident=$host_cpu
|
_host_ident=$host_cpu
|
||||||
;;
|
;;
|
||||||
*-*-emscripten)
|
*-*-emscripten)
|
||||||
_host_ident=$(emcc -dumpversion)-$host_cpu
|
_host_ident=$(emcc -dumpversion | cut -f1 -d-)-$host_cpu
|
||||||
;;
|
;;
|
||||||
wasm32-*-* | wasm64-*-*)
|
wasm32-*-* | wasm64-*-*)
|
||||||
_host_ident=$host_cpu
|
_host_ident=$host_cpu
|
||||||
|
|
|
@ -794,7 +794,7 @@ if test "$cross_compiling" = yes; then
|
||||||
_host_ident=$host_cpu
|
_host_ident=$host_cpu
|
||||||
;;
|
;;
|
||||||
*-*-emscripten)
|
*-*-emscripten)
|
||||||
_host_ident=$(emcc -dumpversion)-$host_cpu
|
_host_ident=$(emcc -dumpversion | cut -f1 -d-)-$host_cpu
|
||||||
;;
|
;;
|
||||||
wasm32-*-* | wasm64-*-*)
|
wasm32-*-* | wasm64-*-*)
|
||||||
_host_ident=$host_cpu
|
_host_ident=$host_cpu
|
||||||
|
|
Loading…
Reference in New Issue