diff options
author | 2019-10-14 07:46:42 -0400 | |
---|---|---|
committer | 2019-10-14 07:47:37 -0400 | |
commit | 73c4665039004dfce0c0f0df19fd5873e0f68e77 (patch) | |
tree | 97007f1d2e1eba4f6298cce1227ded5fca12dd24 /scripts/src | |
parent | 0cd3ea1d192ad4ec868ddc0a0f677dfc04277c77 (diff) |
Fix BGFX build on older OS X systems (nw)
The Vulkan renderer has to be disabled on Yosemite and older because its backend depends on Metal.
Diffstat (limited to 'scripts/src')
-rw-r--r-- | scripts/src/3rdparty.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index c80075bf9f1..cb213c2e679 100644 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -1366,6 +1366,14 @@ end end end + if _OPTIONS["targetos"]=="macosx" and _OPTIONS["gcc"]~=nil then + if string.find(_OPTIONS["gcc"], "clang") and (version < 80000) then + defines { + "TARGET_OS_OSX=1", + } + end + end + defines { "__STDC_LIMIT_MACROS", "__STDC_FORMAT_MACROS", |