File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ option(SPIRV_ALLOW_TIMERS "Allow timers via clock_gettime on supported platforms
3939if ("${CMAKE_SYSTEM_NAME} " STREQUAL "Linux" )
4040 add_definitions (-DSPIRV_LINUX )
4141 set (SPIRV_TIMER_ENABLED ${SPIRV_ALLOW_TIMERS} )
42+ elseif ("${CMAKE_SYSTEM_NAME} " STREQUAL "Emscripten" )
43+ add_definitions (-DSPIRV_EMSCRIPTEN )
4244elseif ("${CMAKE_SYSTEM_NAME} " STREQUAL "Windows" )
4345 add_definitions (-DSPIRV_WINDOWS )
4446elseif ("${CMAKE_SYSTEM_NAME} " STREQUAL "CYGWIN" )
Original file line number Diff line number Diff line change 1515#include " source/print.h"
1616
1717#if defined(SPIRV_ANDROID) || defined(SPIRV_LINUX) || defined(SPIRV_MAC) || \
18- defined (SPIRV_FREEBSD)
18+ defined (SPIRV_FREEBSD) || defined(SPIRV_EMSCRIPTEN)
1919namespace spvtools {
2020
2121clr::reset::operator const char *() { return " \x1b [0m" ; }
You can’t perform that action at this time.
0 commit comments