From b0e0c688c8a116afe0729c4cce3f615ae79fe36a Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sat, 28 Jun 2025 11:18:37 +0200 Subject: [PATCH] buildgcc: Use -d to check libstdc++ include directory Change-Id: I3d8519557d99f6cb910e721643c1b4b2eab6bb05 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/88231 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- util/crossgcc/buildgcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index b5c8beeff2..d72ac54c88 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -868,7 +868,7 @@ build_cross_GCC() { } build_LIBSTDCXX() { - if [ ! -e "${LIBSTDCXX_INCLUDE_PATH}" ]; then + if [ ! -d "${LIBSTDCXX_INCLUDE_PATH}" ]; then touch .failed printf "libstdcxx include path \"%s\" does not exist" "${LIBSTDCXX_INCLUDE_PATH}" return