From 45850cd0be8ba1ce02d8351ac8e0a18c9702fb86 Mon Sep 17 00:00:00 2001 From: AJR Date: Thu, 18 Jun 2020 11:17:03 -0400 Subject: Fix OS X build on older Xcode versions (nw) --- scripts/genie.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/genie.lua') 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") -- cgit v1.2.3-70-g09d2