Skip to content

Commit 61c1a24

Browse files
authored
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.
1 parent 616692d commit 61c1a24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 1 deletion
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)