[PATCH] D130820: [cmake] Add LoongArch to config.guess
WÁNG Xuěruì via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 30 06:37:48 PDT 2022
xen0n created this revision.
xen0n added reviewers: xry111, MaskRay, rengolin, myhsu.
Herald added subscribers: StephenFan, mgorny.
Herald added a project: All.
xen0n requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Necessary for native builds on LoongArch. Only Linux is added for now,
matching upstream config.git changes.
Unfortunately, the upstream config.guess is GPLv3+ since 2012, and
LLVM is without autoconf support for a long time, so the script's
licensing exception no longer works and a bump could not be trivially
done.
This is the same as the upstream commit adding LoongArch <https://git.savannah.gnu.org/gitweb/?p=config.git;a=commitdiff;h=c8ddc8472f8efcadafc1ef53ca1d863415fddd5f>,
but rewritten to match the 2011 style that our script is holding on
to.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130820
Files:
llvm/cmake/config.guess
Index: llvm/cmake/config.guess
===================================================================
--- llvm/cmake/config.guess
+++ llvm/cmake/config.guess
@@ -922,6 +922,9 @@
ia64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
+ loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
+ echo "${UNAME_MACHINE}-unknown-linux-${LIBC}"
+ exit ;;
m32r*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
exit ;;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130820.448798.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220730/54c260b1/attachment.bin>
More information about the llvm-commits
mailing list