diff options
author | 2020-06-18 11:17:03 -0400 | |
---|---|---|
committer | 2020-06-18 11:17:37 -0400 | |
commit | 45850cd0be8ba1ce02d8351ac8e0a18c9702fb86 (patch) | |
tree | 41bff563e9860dd0c2c9c4bd6ec9e31535ca4d7a /scripts/genie.lua | |
parent | 409508dda32e7e1881a27f6a8410d6d9d2e7016e (diff) |
Fix OS X build on older Xcode versions (nw)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index 33715a6b3e4..19c892d6c65 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1086,6 +1086,16 @@ end "-Wno-pragma-pack" -- clang 6.0 complains when the packing change lifetime is not contained within a header file. } end + if ((version < 60000) or (_OPTIONS["targetos"]=="macosx" and (version <= 90000))) then + buildoptions { + "-Wno-missing-braces" -- std::array brace initialization not fixed until 6.0.0 (https://reviews.llvm.org/rC314838) + } + end + if (_OPTIONS["targetos"]=="macosx" and (version < 80000)) then + defines { + "TARGET_OS_OSX=1", + } + end else if (version < 70000) then print("GCC version 7.0 or later needed") |