git: d069710805e8 - main - graphics/vulkan-validation-layers: unbreak build with Clang 13

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 10 Nov 2021 22:04:16 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d069710805e852b8b212e3ffe13f66b5653a0284

commit d069710805e852b8b212e3ffe13f66b5653a0284
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-11-10 19:24:41 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-11-10 21:46:42 +0000

    graphics/vulkan-validation-layers: unbreak build with Clang 13
    
    In file included from layers/generated/chassis.cpp:48:
    In file included from layers/best_practices_validation.h:26:
    In file included from layers/image_state.h:31:
    In file included from layers/image_layout_map.h:30:
    layers/subresource_adapter.h:67:5: error: definition of implicit copy assignment operator for 'Subresource' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
        Subresource(const Subresource& from) = default;
        ^
    layers/subresource_adapter.h:305:42: note: in implicit copy assignment operator for 'subresource_adapter::Subresource' first required here
            *static_cast<Subresource*>(this) = encoder_->Decode(index);
                                             ^
    
    Reported by:    antoine (via bug 258209 exp-run)
---
 graphics/vulkan-validation-layers/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/graphics/vulkan-validation-layers/Makefile b/graphics/vulkan-validation-layers/Makefile
index 6e701156048a..a4d130748836 100644
--- a/graphics/vulkan-validation-layers/Makefile
+++ b/graphics/vulkan-validation-layers/Makefile
@@ -20,6 +20,8 @@ GH_PROJECT=	Vulkan-ValidationLayers
 GH_TUPLE=	KhronosGroup:SPIRV-Headers:1.5.4.raytracing.fixed-98-g449bc98:headers/external/spirv-headers \
 		martinus:robin-hood-hashing:3.11.3:robin_hood/external/robin-hood-hashing
 CMAKE_OFF=	BUILD_TESTS
+# https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/3520
+CMAKE_OFF+=	${${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 130:?BUILD_WERROR:}
 CMAKE_ON=	BUILD_LAYER_SUPPORT_FILES
 CMAKE_ARGS=	-DGLSLANG_INSTALL_DIR:PATH="${LOCALBASE}" \
 		-DROBIN_HOOD_HASHING_INSTALL_DIR:PATH="${WRKSRC_robin_hood}" \