summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-11-17 09:49:03 -0500
committerGitHub <noreply@github.com>2020-11-17 09:49:03 -0500
commitf4dbe7d0c09ab6181fca72b7f30b6ce4599a69de (patch)
tree7345872798d14c4157dec9bdf72eb4f1593d6557 /premake5.lua
parent46e19015fd1046161f24f315deff0411008eafdb (diff)
Fix premake5.lua for profile (#1604)
* #include an absolute path didn't work - because paths were taken to always be relative. * The Profile project wasn't including the generated prelude.
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"