summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/premake5.lua b/premake5.lua
index 1bbfa26a7..8835690ad 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -1024,6 +1024,16 @@ if enableProfile then
files { "source/core/core.natvis" }
+ -- We explicitly name the prelude file(s) that we need to
+ -- compile for their embedded code, since they will not
+ -- exist at the time projects/makefiles are generated,
+ -- and thus a glob would not match anything.
+ files {
+ "prelude/slang-cuda-prelude.h.cpp",
+ "prelude/slang-hlsl-prelude.h.cpp",
+ "prelude/slang-cpp-prelude.h.cpp"
+ }
+
-- Add the slang source
addSourceDir "source/slang"