Wrap entire timer.cpp in SPIRV_TIMER_ENABLED.
This CL moves the SPIRV_TIMER_ENABLED preprocesser guard to encompass the includes along with the source. Currently we will try to pull in sys/resource.h on machines which may not have the file available and the build will fail. If we don't need timers, then we don't need the includes as well.
Loading
Please register or sign in to comment