spirv-tools: remove ports-gcc workaround

tweaked diff from Brad
This commit is contained in:
tb
2026-03-15 17:12:01 +00:00
parent 5bc4153974
commit 28c541773a
2 changed files with 0 additions and 23 deletions
-9
View File
@@ -35,16 +35,7 @@ DPB_PROPERTIES = parallel
CONFIGURE_ARGS = -DSPIRV-Headers_SOURCE_DIR="${LOCALBASE}" \
-DSPIRV_WERROR=OFF
SUBST_VARS += ADDITIONAL_LIBRARIES
pre-configure:
${SUBST_CMD} ${WRKSRC}/tools/CMakeLists.txt
# effcee is missing to build tests
NO_TEST = Yes
.include <bsd.port.mk>
.if ${CHOSEN_COMPILER} == ports-gcc
ADDITIONAL_LIBRARIES = stdc++fs
.endif
@@ -1,14 +0,0 @@
Add -lstdc++fs for ports-gcc
Index: tools/CMakeLists.txt
--- tools/CMakeLists.txt.orig
+++ tools/CMakeLists.txt
@@ -86,7 +86,7 @@ if (NOT ${SPIRV_SKIP_EXECUTABLES})
util/cli_consumer.cpp
io.cpp
${COMMON_TOOLS_SRCS}
- LIBS ${SPIRV_TOOLS_FULL_VISIBILITY})
+ LIBS ${SPIRV_TOOLS_FULL_VISIBILITY} ${ADDITIONAL_LIBRARIES})
target_include_directories(spirv-objdump PRIVATE ${spirv-tools_SOURCE_DIR}
${SPIRV_HEADER_INCLUDE_DIR})
set(SPIRV_INSTALL_TARGETS ${SPIRV_INSTALL_TARGETS} spirv-objdump)