From 2e56bb4db4f9e05be966e64a16b691b5a79700c2 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Fri, 2 Feb 2024 21:19:27 +0100 Subject: [PATCH] Build: Disable -Wtrampolines on Clang --- xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index 8fb514304..71af80de8 100644 --- a/xmake.lua +++ b/xmake.lua @@ -430,7 +430,7 @@ if is_plat("windows") then add_cxflags("/wd4275", {tools = "cl"}) -- DLL-interface class 'class_1' used as base for DLL-interface blah else -- GCC-compatible (GCC, Clang, ...) - add_cxflags("-Wtrampolines") + add_cxflags("-Wtrampolines", {tools = "gcc"}) add_cxflags("-Werror=inconsistent-missing-override", {tools = "clang"}) add_cxflags("-Werror=reorder") add_cxflags("-Werror=suggest-override", {tools = "gcc"})