Skip to content

Commit

Permalink
slang-rhi cmake integration (#6261)
Browse files Browse the repository at this point in the history
* update slang-rhi cmake integration

* disable fetching slang

* update slang-rhi
  • Loading branch information
skallweitNV authored Feb 7, 2025
1 parent 654b969 commit 8d47910
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"cacheVariables": {
"SLANG_SLANG_LLVM_FLAVOR": "DISABLE",
"SLANG_ENABLE_SPLIT_DEBUG_INFO": "OFF",
"SLANG_ENABLE_SLANG_RHI": "OFF",
"CMAKE_C_FLAGS_INIT": "-fwasm-exceptions -Os",
"CMAKE_CXX_FLAGS_INIT": "-fwasm-exceptions -Os",
"CMAKE_EXE_LINKER_FLAGS": "-sASSERTIONS -sALLOW_MEMORY_GROWTH -fwasm-exceptions --export=__cpp_exception"
Expand Down
4 changes: 2 additions & 2 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ target_include_directories(stb INTERFACE "${CMAKE_CURRENT_LIST_DIR}/stb")

# slang-rhi
if(SLANG_ENABLE_SLANG_RHI)
set(SLANG_RHI_BUILD_FROM_SLANG_REPO ON)
set(SLANG_RHI_BINARY_DIR ${CMAKE_BINARY_DIR}/$<CONFIG>/bin)
set(SLANG_RHI_FETCH_SLANG OFF)
set(SLANG_RHI_SLANG_INCLUDE_DIR ${slang_SOURCE_DIR}/include)
set(SLANG_RHI_SLANG_BINARY_DIR ${CMAKE_BINARY_DIR})
set(SLANG_RHI_BUILD_TESTS OFF)
set(SLANG_RHI_BUILD_EXAMPLES OFF)

# Not disabling these break tests (issue #5474)
set(SLANG_RHI_FETCH_DXC OFF)
Expand Down

0 comments on commit 8d47910

Please sign in to comment.