diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-09-02 18:24:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 16:24:12 +0000 |
commit | 8eb85098342a998d1b835bfd591fba2f19a6dcb9 (patch) | |
tree | 48f7053ed4d71379f858c278d0c224951cba0d5c | |
parent | 4386afb057a828360853672c0b94be66a1f0b6ee (diff) | |
download | SPIRV-Tools-8eb85098342a998d1b835bfd591fba2f19a6dcb9.tar.gz |
build: cmake: Add support for GNU/Hurd (#4895)
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | source/print.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 76b87d8c..58694c34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,8 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") add_definitions(-DSPIRV_FREEBSD) elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia") add_definitions(-DSPIRV_FUCHSIA) +elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "GNU") + add_definitions(-DSPIRV_GNU) else() message(FATAL_ERROR "Your platform '${CMAKE_SYSTEM_NAME}' is not supported!") endif() diff --git a/source/print.cpp b/source/print.cpp index 2418c5bc..90dd5c17 100644 --- a/source/print.cpp +++ b/source/print.cpp @@ -16,7 +16,7 @@ #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_EMSCRIPTEN) || defined(SPIRV_FUCHSIA) || defined(SPIRV_GNU) namespace spvtools { clr::reset::operator const char*() { return "\x1b[0m"; } |