From 74d340a886f351a97168e5b19b7e1f0713de0441 Mon Sep 17 00:00:00 2001 From: Antonio Giner Date: Wed, 17 Jan 2024 23:02:22 +0100 Subject: [PATCH] Fix Mac build, finally. --- scripts/src/3rdparty.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index d31f813445f34..c4145ddfe1615 100755 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -2090,12 +2090,6 @@ if _OPTIONS["targetos"]=="linux" then backtick("pkg-config --cflags sdl2"), } - if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then - buildoptions { - "-Wno-unused-private-field", - } - end - links { "Xrandr", } @@ -2104,3 +2098,9 @@ if _OPTIONS["targetos"]=="linux" then addlibfromstring(str) addoptionsfromstring(str) end + +if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then + buildoptions { + "-Wno-unused-private-field", + } +end