summaryrefslogtreecommitdiff
path: root/cmake/CompilerFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/CompilerFlags.cmake')
-rw-r--r--cmake/CompilerFlags.cmake7
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()