mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 11:10:05 +00:00
Support building on OpenBSD (#4912)
This commit is contained in:
parent
529955e03d
commit
5f45f793ae
@ -56,6 +56,8 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
|
||||
set(SPIRV_TIMER_ENABLED ${SPIRV_ALLOW_TIMERS})
|
||||
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
|
||||
add_definitions(-DSPIRV_FREEBSD)
|
||||
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
|
||||
add_definitions(-DSPIRV_OPENBSD)
|
||||
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
|
||||
add_definitions(-DSPIRV_FUCHSIA)
|
||||
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "GNU")
|
||||
|
@ -16,7 +16,8 @@
|
||||
|
||||
#if defined(SPIRV_ANDROID) || defined(SPIRV_LINUX) || defined(SPIRV_MAC) || \
|
||||
defined(SPIRV_IOS) || defined(SPIRV_TVOS) || defined(SPIRV_FREEBSD) || \
|
||||
defined(SPIRV_EMSCRIPTEN) || defined(SPIRV_FUCHSIA) || defined(SPIRV_GNU)
|
||||
defined(SPIRV_OPENBSD) || defined(SPIRV_EMSCRIPTEN) || \
|
||||
defined(SPIRV_FUCHSIA) || defined(SPIRV_GNU)
|
||||
namespace spvtools {
|
||||
|
||||
clr::reset::operator const char*() { return "\x1b[0m"; }
|
||||
|
Loading…
Reference in New Issue
Block a user