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
[ROCm/hip-tests commit: a1f2f02ec7]
Этот коммит содержится в:
коммит произвёл
Jaydeepkumar Patel
родитель
5621df00ef
Коммит
e37068c7b7
@@ -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