From f4dbe7d0c09ab6181fca72b7f30b6ce4599a69de Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 17 Nov 2020 09:49:03 -0500 Subject: 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. --- premake5.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'premake5.lua') 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" -- cgit v1.2.3