diff options
| author | Yong He <yonghe@outlook.com> | 2022-11-10 14:19:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-10 14:19:20 -0800 |
| commit | 0b05fe33c82ee301c134f5b9a87a596aa47121c8 (patch) | |
| tree | 61869daaf5cad2609efcdf239f31c203d64f39b1 /premake5.lua | |
| parent | 10834e69b1e483be4116d85b00d4bc0b861da822 (diff) | |
Fix inlining pass. (#2506)
* Fix inlining pass.
* Add more check against corner cases.
* Revise comments.
* Fixes.
* Fix premake script.
* Fixes.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'premake5.lua')
| -rw-r--r-- | premake5.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/premake5.lua b/premake5.lua index dd16a170c..f5a86126e 100644 --- a/premake5.lua +++ b/premake5.lua @@ -189,6 +189,13 @@ newoption { default = "true", allowed = { { "true", "True"}, { "false", "False" } } } + newoption { + trigger = "full-debug-validation", + description = "(Optional) If true will enable full IR validation in debug build. (SLOW!)", + value = "bool", + default = "false", + allowed = { { "true", "True"}, { "false", "False" } } + } buildLocation = _OPTIONS["build-location"] executeBinary = (_OPTIONS["execute-binary"] == "true") @@ -203,7 +210,8 @@ newoption { skipSourceGeneration = (_OPTIONS["skip-source-generation"] == "true") deployLLVM = (_OPTIONS["deploy-slang-llvm"] == "true") deployGLSLang = (_OPTIONS["deploy-slang-glslang"] == "true") - + fullDebugValidation = (_OPTIONS["full-debug-validation"] == "true") + -- If stdlib embedding is enabled, disable stdlib source embedding by default disableStdlibSource = enableEmbedStdLib @@ -1346,6 +1354,10 @@ tool "slangd" if disableStdlibSource then defines { "SLANG_DISABLE_STDLIB_SOURCE" } end + + if fullDebugValidation then + defines { "SLANG_ENABLE_FULL_IR_VALIDATION" } + end if enableEmbedStdLib then -- We only have this dependency if we are embedding stdlib |
