summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 45a6933de..bebcd7fab 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -316,6 +316,12 @@ SlangResult Session::compileStdLib(slang::CompileStdLibFlags compileFlags)
return SLANG_FAIL;
}
+#ifdef _DEBUG
+ // Print a message in debug builds to notice the user that compiling the stdlib
+ // can take a while.
+ fprintf(stderr, "Compiling stdlib on debug build, this can take a while.\n");
+#endif
+
// TODO(JS): Could make this return a SlangResult as opposed to exception
StringBuilder stdLibSrcBuilder;
stdLibSrcBuilder