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.
This commit is contained in:
AJR 2019-10-14 07:46:42 -04:00
parent 0cd3ea1d19
commit 73c4665039
2 changed files with 9 additions and 1 deletions

View File

@ -97,7 +97,7 @@
|| BX_PLATFORM_LINUX \
|| BX_PLATFORM_WINDOWS \
|| BX_PLATFORM_NX \
|| BX_PLATFORM_OSX \
|| (BX_PLATFORM_OSX >= 101100) \
? 1 : 0)
# endif // BGFX_CONFIG_RENDERER_VULKAN

View File

@ -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",