aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-10-21 19:16:59 +0200
committerGitHub Enterprise <[email protected]>2025-10-21 19:16:59 +0200
commit1de0888546000cc28896f21dc6d76573f04202ad (patch)
treeab6ec0c5ba23282a952c99aa360592d074c72109 /xmake.lua
parent5.7.7-pre2 (diff)
downloadzen-1de0888546000cc28896f21dc6d76573f04202ad.tar.xz
zen-1de0888546000cc28896f21dc6d76573f04202ad.zip
ignore vla-cxx-extension warning on MacOS as well as on Linux (#593)
this triggers in more recent versions of the MacOS toolchain this also adds `--Wno-unknown-warning-option` for macosx until we can figure out how to detect toolchain version since the xcode version we use in CI fails on the `-Wno-vla-cxx-extension`
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index 5fccd3300..a62cbfc9e 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -117,10 +117,16 @@ if is_os("linux") or is_os("macosx") then
add_cxxflags("-Wno-unused-private-field")
add_cxxflags("-Wno-unused-value")
add_cxxflags("-Wno-unused-variable")
+ add_cxxflags("-Wno-vla-cxx-extension")
+end
+
+if is_os("macosx") then
+ -- silence warnings about -Wno-vla-cxx-extension since to my knowledge we can't
+ -- detect the clang version used in Xcode and only recent versions contain this flag
+ add_cxxflags("-Wno-unknown-warning-option")
end
if is_os("linux") then
- add_cxxflags("-Wno-vla-cxx-extension")
add_defines("_GNU_SOURCE")
end