From a1f2f02ec7596362c50d364c7b11a8e4a7def5b5 Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Fri, 23 Aug 2024 09:44:58 +0000 Subject: [PATCH] SWDEV-480962 - std::filesystem need explicit linking with -lstdc++fs. It seem g++ 8.5 needs this explicit linker flag however g++ 11.40 does not. Passing -lstdc++fs flag does not harm with g+ 11.40. Change-Id: Ia6c8412e041c66225b8d0b554724818afc4c5c85 --- utils/coverage/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/coverage/Makefile b/utils/coverage/Makefile index 8c04063b67..0b579b7789 100644 --- a/utils/coverage/Makefile +++ b/utils/coverage/Makefile @@ -20,6 +20,7 @@ CC=g++ CPPFLAGS=-std=c++17 +LDFLAGS=-lstdc++fs SRC=mainCoverage.cpp hipAPI.cpp hipAPIGroup.cpp reportGenerators.cpp hipAPICoverageUtils.cpp OBJ=generateHipAPICoverage @@ -29,7 +30,7 @@ default_target: all all: ${OBJ} ${OBJ}: ${SRC} - @${CC} ${CPPFLAGS} $^ -o ${OBJ} + @${CC} ${CPPFLAGS} $^ -o ${OBJ} ${LDFLAGS} clean: rm -f ${OBJ}