Skip to content

Commit

Permalink
cmake: Debug MSVC DirectXShaderCompiler requires extra configuration …
Browse files Browse the repository at this point in the history
…variables
  • Loading branch information
madebr committed Jan 24, 2025
1 parent d3e304a commit ac425b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ if(SDLSHADERCROSS_VENDORED)
endif()

if(SDLSHADERCROSS_DXC)
# LLVM dependencies of dxc does not support building as a shared library
set(BUILD_SHARED_LIBS OFF)
# Enabling HLSL_ENABLE_DEBUG_ITERATORS blocks DirectXShaderCompiler from adding /D_ITERATOR_DEBUG_LEVEL=0
set(HLSL_ENABLE_DEBUG_ITERATORS ON)
set(DXC_COVERAGE OFF)
set(HLSL_INCLUDE_TESTS OFF)
set(LLVM_INCLUDE_TESTS OFF)
Expand Down

0 comments on commit ac425b2

Please sign in to comment.