Skip to content

Commit

Permalink
Fix Mac build, finally.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioginer committed Jan 17, 2024
1 parent 80e7d9a commit 74d340a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/src/3rdparty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand All @@ -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

0 comments on commit 74d340a

Please sign in to comment.