Remove SPIRV-Tools timers hack, cmake option is now upstream

This commit is contained in:
baldurk
2018-11-26 18:12:11 +00:00
parent 8209b2be46
commit d9eb98ee64
+1 -4
View File
@@ -49,11 +49,8 @@ pushd glslang
# Now build
mkdir build
pushd build
# Hack for now until there's a cmake option to turn this off.
export CXXFLAGS="-USPIRV_TIMER_ENABLED"
cmake .. -DSPIRV_SKIP_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${OUT}"
cmake .. -DSPIRV_ALLOW_TIMERS=OFF -DSPIRV_SKIP_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${OUT}"
if [ "${PLATFORM:0:3}" == "win" ]; then
cmake --build . --config Release --target install