Skip to content

Commit 23857d5

Browse files
committed
fix
1 parent cc82171 commit 23857d5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

premake5.lua

+6-2
Original file line numberDiff line numberDiff line change
@@ -1195,16 +1195,20 @@ if enableEmbedStdLib then
11951195
local absDirectory = path.getabsolute("source/slang")
11961196
local absOutputPath = absDirectory .. "/slang-stdlib-generated.h"
11971197

1198+
-- I don't know why I need a filter, but without it nothing works (!)
1199+
filter("files:source/slang/slang-stdlib-api.cpp")
11981200
-- Note! Has to be an absolute path else doesn't work(!)
11991201
buildoutputs { absOutputPath }
12001202
local f = getWinArm64Filter(true)
1203+
table.insert(f, "files:source/slang/slang-stdlib-api.cpp")
12011204
filter(f)
12021205
buildinputs { '"' .. getWinArm64BuildDir(true) .. '/slangc-bootstrap"' .. executableSuffix }
1203-
buildcommands {'"' .. getWinArm64BuildDir(true) .. '/slangc-bootstrap" -archive-type riff-lz4 -save-stdlib-bin-source ' .. absOutputPath }
1206+
buildcommands {'"' .. getWinArm64BuildDir(true) .. '/slangc-bootstrap" -archive-type riff-lz4 -save-stdlib-bin-source "%{file.directory}/slang-stdlib-generated.h"' }
12041207
f = getWinArm64Filter(false)
1208+
table.insert(f, "files:source/slang/slang-stdlib-api.cpp")
12051209
filter(f)
12061210
buildinputs { "%{cfg.targetdir}/slangc-bootstrap" .. executableSuffix }
1207-
buildcommands { '"%{cfg.targetdir}/slangc-bootstrap" -archive-type riff-lz4 -save-stdlib-bin-source "' .. absOutputPath .. '"' }
1211+
buildcommands { '"%{cfg.targetdir}/slangc-bootstrap" -archive-type riff-lz4 -save-stdlib-bin-source "%{file.directory}/slang-stdlib-generated.h"' }
12081212
end
12091213

12101214

0 commit comments

Comments
 (0)