diff options
| author | Yong He <yonghe@outlook.com> | 2024-07-10 16:17:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-10 16:17:10 -0700 |
| commit | 746d47bb491e0b97e35ab373b4b78d33b9a61164 (patch) | |
| tree | 74e0936472d911d8c6c561ca4b21e800306c5f51 /cmake/CompilerFlags.cmake | |
| parent | 82f308ca692878bfe9844b86629c6536b4cd0f0a (diff) | |
Specialize address space during spirv legalization. (#4600)
* Specialize address space during spirv legalization.
* Fix.
* Fix building doc.
* Fix cmake.
* Update assert.
Diffstat (limited to 'cmake/CompilerFlags.cmake')
| -rw-r--r-- | cmake/CompilerFlags.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/CompilerFlags.cmake b/cmake/CompilerFlags.cmake index 2a9988d4e..cd9021cd0 100644 --- a/cmake/CompilerFlags.cmake +++ b/cmake/CompilerFlags.cmake @@ -195,6 +195,13 @@ function(set_default_compile_options target) ) endif() + if(SLANG_ENABLE_IR_BREAK_ALLOC) + target_compile_definitions( + ${target} + PRIVATE SLANG_ENABLE_IR_BREAK_ALLOC + ) + endif() + if(SLANG_ENABLE_DX_ON_VK) target_compile_definitions(${target} PRIVATE SLANG_CONFIG_DX_ON_VK) endif() |
