From 098ef1a8f6d2cc2fe6e1ffa60e853d1105081380 Mon Sep 17 00:00:00 2001 From: Jan Wielemaker Date: Sun, 1 Sep 2024 19:56:49 +0200 Subject: [PATCH] Make scripts/configure support plain clang. --- scripts/configure | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/configure b/scripts/configure index 8da20bdfda..5da09dab3a 100755 --- a/scripts/configure +++ b/scripts/configure @@ -28,11 +28,15 @@ case $config in export CC=gcc-$version export CXX=g++-$version ;; - *clang-*) + *clang-[0-9]*) version=$(echo $config | sed 's/.*clang-\([0-9]*\).*/\1/') export CC=clang-$version export CXX=clang++-$version ;; + *clang*) + export CC=clang + export CXX=clang++ + ;; esac # nogmp