Skip to content

Commit 7fedeab

Browse files
hmartinez82lazka
authored andcommitted
vsg: Fix macro clash in aarch64 when including PipelineBarrier.h
1 parent 1c359c5 commit 7fedeab

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff -bur VulkanSceneGraph-1.1.10-orig/include/vsg/commands/PipelineBarrier.h VulkanSceneGraph-1.1.10/include/vsg/commands/PipelineBarrier.h
2+
--- VulkanSceneGraph-1.1.10-orig/include/vsg/commands/PipelineBarrier.h 2025-03-15 02:15:16 -0600
3+
+++ VulkanSceneGraph-1.1.10/include/vsg/commands/PipelineBarrier.h 2025-03-15 02:17:37 -0600
4+
@@ -17,6 +17,11 @@
5+
#include <vsg/state/Buffer.h>
6+
#include <vsg/state/Image.h>
7+
8+
+#ifdef _M_ARM64
9+
+#pragma push_macro("MemoryBarrier")
10+
+#undef MemoryBarrier
11+
+#endif
12+
+
13+
namespace vsg
14+
{
15+
16+
@@ -157,3 +162,7 @@
17+
VSG_type_name(vsg::PipelineBarrier);
18+
19+
} // namespace vsg
20+
+
21+
+#ifdef _M_ARM64
22+
+#pragma pop_macro("MemoryBarrier")
23+
+#endif
24+
\ No newline at end of file

mingw-w64-vulkanscenegraph/PKGBUILD

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pkgbase=mingw-w64-${_realname,,}
55
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname,,}"
66
"${MINGW_PACKAGE_PREFIX}-${_realname,,}-docs")
77
pkgver=1.1.10
8-
pkgrel=1
8+
pkgrel=2
99
pkgdesc="Vulkan & C++17 based Scene Graph Project (mingw-w64)"
1010
arch=('any')
1111
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
@@ -26,9 +26,11 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
2626
# The '0001-vsg-1.1.3-devendor-glslang.patch' patch
2727
# copied from https://github.com/microsoft/vcpkg/pull/38294
2828
source=("${msys2_repository_url}/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
29-
'0002-vsg-1.1.3-fix-win32-window.patch')
29+
'0002-vsg-1.1.3-fix-win32-window.patch'
30+
'0003-arm64-macro-clash.patch')
3031
sha256sums=('b430132ba5454e0616ff5334a7cb9196c0e8f10a925c2106e80a78d6f24ae4b5'
31-
'2e6d8b0c2434a98eb67a70afb8643f109592dcea2e6afdbe2f6fe59e6783d792')
32+
'2e6d8b0c2434a98eb67a70afb8643f109592dcea2e6afdbe2f6fe59e6783d792'
33+
'3f6c1b96edfc24b970287f540a252ba6685b94522a5e92fcfd8f3bc85f091960')
3234

3335
# Helper macros to help make tasks easier #
3436
apply_patch_with_msg() {
@@ -44,7 +46,8 @@ prepare() {
4446
cd "${srcdir}/${_realname}-${pkgver}"
4547

4648
apply_patch_with_msg \
47-
0002-vsg-1.1.3-fix-win32-window.patch
49+
0002-vsg-1.1.3-fix-win32-window.patch \
50+
0003-arm64-macro-clash.patch
4851
}
4952

5053
build() {

0 commit comments

Comments
 (0)