[llvm] 7f5d1f1 - [SystemZ] Fix handling of triples.

via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 8 00:37:27 PDT 2024


Author: Jonas Paulsson
Date: 2024-06-08T09:37:23+02:00
New Revision: 7f5d1f116477388067b1fd865e56eb3868993998

URL: https://github.com/llvm/llvm-project/commit/7f5d1f116477388067b1fd865e56eb3868993998
DIFF: https://github.com/llvm/llvm-project/commit/7f5d1f116477388067b1fd865e56eb3868993998.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/cmake/config.guess

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/config.guess b/llvm/cmake/config.guess
index f489623677694..2444ed7f5792b 100644
--- a/llvm/cmake/config.guess
+++ b/llvm/cmake/config.guess
@@ -4,7 +4,7 @@
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
 #   2011 Free Software Foundation, Inc.
 
-timestamp='2011-08-20'
+timestamp='2024-06-07'
 
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -1028,7 +1028,11 @@ EOF
 	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
 	exit ;;
     s390:Linux:*:* | s390x:Linux:*:*)
-	echo ${UNAME_MACHINE}-ibm-linux
+	if [ "$(grep -Ei 'debian|ubuntu' /etc/lsb-release)" ]; then
+	    echo ${UNAME_MACHINE}-linux-gnu
+	else
+	    echo ${UNAME_MACHINE}-ibm-linux
+	fi
 	exit ;;
     sh64*:Linux:*:*)
 	echo ${UNAME_MACHINE}-unknown-linux-gnu


        


More information about the llvm-commits mailing list