diff options
| author | Stefan Boberg <[email protected]> | 2025-10-21 19:16:59 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-21 19:16:59 +0200 |
| commit | 1de0888546000cc28896f21dc6d76573f04202ad (patch) | |
| tree | ab6ec0c5ba23282a952c99aa360592d074c72109 /xmake.lua | |
| parent | 5.7.7-pre2 (diff) | |
| download | zen-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.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |