[cmake] Add LoongArch to config.guess
authorWANG Xuerui <xen0n@gentoo.org>
Mon, 1 Aug 2022 07:04:54 +0000 (15:04 +0800)
committerWeining Lu <luweining@loongson.cn>
Mon, 1 Aug 2022 07:05:34 +0000 (15:05 +0800)
commite48a0df3fcfd2a58f957a86ae5f11a6bb5fa5d85
treec983c456744791109eaab42c49158848fa923dbd
parent7b0f6378e211e881c574748090a86beeab264ab3
[cmake] Add LoongArch to config.guess

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.

Differential Revision: https://reviews.llvm.org/D130820
llvm/cmake/config.guess