]> git.ipfire.org Git - thirdparty/git.git/commit
Handle some compiler versions containing a dash
authorMike Hommey <mh@glandium.org>
Wed, 26 Apr 2023 00:48:43 +0000 (09:48 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Apr 2023 16:20:50 +0000 (09:20 -0700)
commit382a9464145de7c1d4f89a161184686cf8685886
tree2be4bb5fcde102354b319e9e526f89fee74c932a
parent2807bd2c10606e590886543afe4e4f208dddd489
Handle some compiler versions containing a dash

The version reported by e.g. x86_64-w64-mingw32-gcc on Debian bullseye
looks like:
  gcc version 10-win32 20210110 (GCC)

This ends up with detect-compiler failing with:
  ./detect-compiler: 30: test: Illegal number: 10-win32

This change removes the two known suffixes known to exist in GCC versions
in Debian: -win32 and -posix.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
detect-compiler