CMake: Windows: Use release libs of shaderc for debug builds.
While shaderc is a c++ library that normally requires debug libs for ABI reasons, shaderc only exports a C interface, so it will link release mode libs just fine even for debug builds. This drops the time required for GPU_shader_compile_static in a debug build from 5 mins to 3 sec for @pragma37 no changes for release configurations.
This commit is contained in:
@@ -1312,8 +1312,7 @@ if(WITH_VULKAN_BACKEND)
|
||||
set(SHADERC_INCLUDE_DIR ${SHADERC_ROOT_DIR}/include)
|
||||
set(SHADERC_INCLUDE_DIRS ${SHADERC_INCLUDE_DIR})
|
||||
set(SHADERC_LIBRARY
|
||||
DEBUG ${SHADERC_ROOT_DIR}/lib/shaderc_shared_d.lib
|
||||
OPTIMIZED ${SHADERC_ROOT_DIR}/lib/shaderc_shared.lib
|
||||
${SHADERC_ROOT_DIR}/lib/shaderc_shared.lib
|
||||
)
|
||||
set(SHADERC_LIBRARIES ${SHADERC_LIBRARY})
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user