summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua14
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