* config.sub (*-linux-llvm): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data: Add x86_64-linux-llvm.
Signed-off-by: Alfred Persson Forsberg <c...@catcream.org> --- config.sub | 8 ++++---- doc/config.sub.1 | 4 ++-- testsuite/config-sub.data | 1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/config.sub b/config.sub index 6ae2502..db0581d 100755 --- a/config.sub +++ b/config.sub @@ -4,7 +4,7 @@ # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2023-07-31' +timestamp='2023-10-19' # 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 @@ -1694,7 +1694,7 @@ fi # Now, validate our (potentially fixed-up) OS. case $os in # Sometimes we do "kernel-libc", so those need to count as OSes. - musl* | newlib* | relibc* | uclibc*) + llvm* | musl* | newlib* | relibc* | uclibc*) ;; # Likewise for "kernel-abi" eabi* | gnueabi*) @@ -1757,7 +1757,7 @@ esac # (given a valid OS), if there is a kernel. case $kernel-$os in linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \ - | linux-musl* | linux-relibc* | linux-uclibc* | linux-mlibc* ) + | linux-llvm* | linux-musl* | linux-relibc* | linux-uclibc* | linux-mlibc* ) ;; uclinux-uclibc* ) ;; @@ -1765,7 +1765,7 @@ case $kernel-$os in ;; windows*-gnu* | windows*-msvc*) ;; - -dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* | -mlibc* ) + -dietlibc* | -llvm* | -newlib* | -musl* | -relibc* | -uclibc* | -mlibc* ) # These are just libc implementations, not actual OSes, and thus # require a kernel. echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 diff --git a/doc/config.sub.1 b/doc/config.sub.1 index cfbd2b9..476dee6 100644 --- a/doc/config.sub.1 +++ b/doc/config.sub.1 @@ -1,5 +1,5 @@ -.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. -.TH CONFIG.SUB "1" "July 2023" "GNU config.sub (2023-07-31)" "User Commands" +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH CONFIG.SUB "1" "October 2023" "GNU config.sub (2023-10-19)" "User Commands" .SH NAME config.sub \- validate and canonicalize a configuration triplet .SH SYNOPSIS diff --git a/testsuite/config-sub.data b/testsuite/config-sub.data index ba934b6..fcf66c8 100644 --- a/testsuite/config-sub.data +++ b/testsuite/config-sub.data @@ -870,6 +870,7 @@ x86_64-ericsson-dicos x86_64-ericsson-dicos x86_64-fuchsia x86_64-pc-fuchsia x86_64-genode x86_64-pc-genode x86_64-glidix x86_64-pc-glidix +x86_64-linux-llvm x86_64-pc-linux-llvm x86_64-linux-mlibc x86_64-pc-linux-mlibc x86_64-linux-relibc x86_64-pc-linux-relibc x86_64-managarm x86_64-pc-managarm-mlibc -- 2.42.0