git: f98c438a0191 - main - emulators/yuzu: unbreak build on aarch64

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 06 Mar 2023 11:51:16 UTC
The branch main has been updated by jbeich:

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

commit f98c438a01911643667fecb0780638d60d3843dd
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-06 10:26:33 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-06 11:50:45 +0000

    emulators/yuzu: unbreak build on aarch64
    
    In file included from src/core/debugger/debugger.cpp:8:
    In file included from /usr/local/include/boost/asio.hpp:20:
    In file included from /usr/local/include/boost/asio/append.hpp:74:
    In file included from /usr/local/include/boost/asio/impl/append.hpp:22:
    In file included from /usr/local/include/boost/asio/detail/handler_alloc_helpers.hpp:21:
    In file included from /usr/local/include/boost/asio/detail/recycling_allocator.hpp:20:
    In file included from /usr/local/include/boost/asio/detail/thread_context.hpp:20:
    In file included from /usr/local/include/boost/asio/detail/call_stack.hpp:20:
    In file included from /usr/local/include/boost/asio/detail/tss_ptr.hpp:27:
    In file included from /usr/local/include/boost/asio/detail/posix_tss_ptr.hpp:76:
    In file included from /usr/local/include/boost/asio/detail/impl/posix_tss_ptr.ipp:23:
    In file included from /usr/local/include/boost/asio/detail/throw_error.hpp:20:
    In file included from /usr/local/include/boost/system/error_code.hpp:13:
    In file included from /usr/local/include/boost/system/detail/error_code.hpp:15:
    In file included from /usr/local/include/boost/system/detail/error_condition.hpp:18:
    In file included from /usr/local/include/boost/system/detail/append_int.hpp:8:
    /usr/local/include/boost/system/detail/snprintf.hpp:62:13: error: non-const lvalue reference to type '__builtin_va_list' cannot bind to a value of unrelated type 'va_list' (aka 'std::__va_list')
        va_end( args );
                ^~~~
    /usr/include/sys/_stdarg.h:51:40: note: expanded from macro 'va_end'
      #define       va_end(ap)              __builtin_va_end(ap)
                                                             ^~
    
    Reported by:    pkg-fallout
---
 emulators/yuzu/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/emulators/yuzu/Makefile b/emulators/yuzu/Makefile
index 2120adb7a9f8..2893a43c7aea 100644
--- a/emulators/yuzu/Makefile
+++ b/emulators/yuzu/Makefile
@@ -69,6 +69,7 @@ USE_SDL=	sdl2
 CMAKE_ON=	Boost_USE_STATIC_LIBS
 CMAKE_ON+=	BUNDLE_SPEEX # only used by cubeb tests
 CMAKE_OFF=	YUZU_CHECK_SUBMODULES YUZU_USE_EXTERNAL_SDL2 YUZU_USE_EXTERNAL_VULKAN_HEADERS
+CMAKE_OFF+=	${ARCH:Maarch64:C/.+/YUZU_USE_PRECOMPILED_HEADERS DYNARMIC_USE_PRECOMPILED_HEADERS/}
 CMAKE_OFF+=	${CMAKE_TESTING_ON}
 CMAKE_TESTING_ON=	YUZU_TESTS
 LDFLAGS+=	-Wl,--as-needed # Qt5Network