aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2023-11-16 15:10:28 +0800
committerGitHub <noreply@github.com>2023-11-16 15:10:28 +0800
commit9b2ad263050085543a1ad57c13039e49a79a7def (patch)
treeb39a0af15693ddc092f3c39ee4c13de1e6c4517c
parentb86b2b37d0acc607156ff56ff17ee105a9b48897 (diff)
parent6cd7838a0743d07896a4562dd186fa6b4f665af3 (diff)
downloadriscv-gnu-toolchain-9b2ad263050085543a1ad57c13039e49a79a7def.zip
riscv-gnu-toolchain-9b2ad263050085543a1ad57c13039e49a79a7def.tar.gz
riscv-gnu-toolchain-9b2ad263050085543a1ad57c13039e49a79a7def.tar.bz2
Merge pull request #1367 from patrick-rivos/update_multilib_generator_splitting2023.11.17
prevent multilib reports from failing with trailing ; in configure
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 27ecb14..7d6bed0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -63,7 +63,7 @@ ifeq ($(MULTILIB_GEN),)
NEWLIB_MULTILIB_NAMES := @newlib_multilib_names@
GCC_MULTILIB_FLAGS := $(MULTILIB_FLAGS)
else
-NEWLIB_MULTILIB_NAMES := $(shell echo "$(MULTILIB_GEN)" | $(SED) 's/;/\n/g'| $(AWK) '{split($$0,a,"-"); printf "%s-%s ", a[1],a[2]}')
+NEWLIB_MULTILIB_NAMES := $(shell echo "$(MULTILIB_GEN)" | $(SED) 's/;/\n/g' | $(SED) '/^$$/d' | $(AWK) '{split($$0,a,"-"); printf "%s-%s ", a[1],a[2]}')
GCC_MULTILIB_FLAGS := $(MULTILIB_FLAGS) --with-multilib-generator="$(MULTILIB_GEN)"
endif
GLIBC_MULTILIB_NAMES := @glibc_multilib_names@