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
Этот коммит содержится в:
коммит произвёл
Jaydeepkumar Patel
родитель
d3f42460e8
Коммит
a1f2f02ec7
@@ -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}
|
||||
|
||||
Ссылка в новой задаче
Block a user