Skip to content

Commit 7f5d1f1

Browse files
authored
[SystemZ] Fix handling of triples.
Some Ubuntu builds were broken after 20d497c "[Driver] Remove unneeded *-linux-gnu after D158183". This patch by Fangrui Song fixes this with a handling in config.guess.
1 parent 6885281 commit 7f5d1f1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

llvm/cmake/config.guess

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
55
# 2011 Free Software Foundation, Inc.
66

7-
timestamp='2011-08-20'
7+
timestamp='2024-06-07'
88

99
# This file is free software; you can redistribute it and/or modify it
1010
# under the terms of the GNU General Public License as published by
@@ -1028,7 +1028,11 @@ EOF
10281028
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
10291029
exit ;;
10301030
s390:Linux:*:* | s390x:Linux:*:*)
1031-
echo ${UNAME_MACHINE}-ibm-linux
1031+
if [ "$(grep -Ei 'debian|ubuntu' /etc/lsb-release)" ]; then
1032+
echo ${UNAME_MACHINE}-linux-gnu
1033+
else
1034+
echo ${UNAME_MACHINE}-ibm-linux
1035+
fi
10321036
exit ;;
10331037
sh64*:Linux:*:*)
10341038
echo ${UNAME_MACHINE}-unknown-linux-gnu

0 commit comments

Comments
 (0)