From 252b98eaf76cc3e702b8e9fc0e3a835af5d7b33e Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 16 Mar 2026 10:28:28 +0100 Subject: Linux build improvements (#843) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - **Sentry crashpad patch**: Make static libc++ linking conditional on `-stdlib=libc++` being active, so the patch doesn't break gcc or system clang builds that use libstdc++ - **GCC warning fix**: Suppress `-Wunused-but-set-variable` for gcc (false positive with `constinit` static locals passed by reference) - **ASIO typo fix**: `ASIO_STANDLONE` → `ASIO_STANDALONE` - **Toolchain verification script**: `scripts/ue_build_linux/verify_linux_toolchains.sh` for testing builds across gcc, ue-clang, clang-19 and clang-20 --- xmake.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmake.lua') diff --git a/xmake.lua b/xmake.lua index 49dd3058f..4110f25e2 100644 --- a/xmake.lua +++ b/xmake.lua @@ -202,6 +202,8 @@ if is_os("linux") or is_os("macosx") then add_cxxflags("-Wno-unused-value") add_cxxflags("-Wno-unused-variable") add_cxxflags("-Wno-vla-cxx-extension") + -- GCC false positive: constinit static locals used by reference are reported as unused-but-set + add_cxxflags("-Wno-unused-but-set-variable", {tools="gcc"}) end if get_config("toolchain") == "clang-cl" then -- cgit v1.2.3