From 623e7f7a474d746e0d2b3f88cf058a36d9d87fe3 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sat, 31 May 2025 14:52:00 +0200 Subject: [PATCH] Disable warning LNK4098 Even with lots of effort [1] to isolate the offending library there is little to be had, as such disable the warning. [1] https://gitea.wildfiregames.com/0ad/0ad/pulls/7798#issuecomment-119332 Signed-off-by: Ralph Sennhauser --- build/premake/premake5.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/premake/premake5.lua b/build/premake/premake5.lua index 29cea283d5..01664fa138 100644 --- a/build/premake/premake5.lua +++ b/build/premake/premake5.lua @@ -461,6 +461,13 @@ function project_create(project_name, target_type) linkoptions "/ignore:4221" filter {} + if arch == "amd64" then + filter { "Debug", "action:vs*" } + -- FIXME: disable LNK4098, some of the prebuilt libs for 64bit debug build have non matching options. + linkoptions "/ignore:4098" + filter {} + end + project_set_target(project_name) project_set_build_flags() end