buildgcc: Use -d to check libstdc++ include directory

Change-Id: I3d8519557d99f6cb910e721643c1b4b2eab6bb05
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88231
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
This commit is contained in:
Elyes Haouas 2025-06-28 11:18:37 +02:00
commit b0e0c688c8

View file

@ -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