Skip to content

Commit 6834b69

Browse files
hoodmanesrinivasreddy
authored andcommitted
pythongh-127146: Strip dash from Emscripten compiler version (python#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.
1 parent 9c5b386 commit 6834b69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ if test "$cross_compiling" = yes; then
794794
_host_ident=$host_cpu
795795
;;
796796
*-*-emscripten)
797-
_host_ident=$(emcc -dumpversion)-$host_cpu
797+
_host_ident=$(emcc -dumpversion | cut -f1 -d-)-$host_cpu
798798
;;
799799
wasm32-*-* | wasm64-*-*)
800800
_host_ident=$host_cpu

0 commit comments

Comments
 (0)