Skip to content

Commit

Permalink
fixes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Jun 26, 2024
1 parent ce9d4a5 commit 8d32f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/writer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ function GEN.msvc_copydll(attribute, name)

if attribute.type == "vcrt" then
local ignore = attribute.optimize == "off" and "vccorlib140d.dll" or "vccorlib140.dll"
for dll in fs.pairs(msvc.vcrtpath(archalias, attribute.optimize, attribute.toolset)) do
for dll in fs.pairs(msvc.vcrtpath(archalias, attribute.optimize, globals.toolset)) do
local filename = dll:filename():string()
if filename:lower() ~= ignore then
for _, outputdir in ipairs(attributeOutputs) do
Expand Down Expand Up @@ -713,7 +713,7 @@ function GEN.msvc_copydll(attribute, name)
)
local inputdir = globals.cc == "clang-cl"
and msvc.llvmpath()
or msvc.binpath(archalias, attribute.toolset)
or msvc.binpath(archalias, globals.toolset)
for _, outputdir in ipairs(attributeOutputs) do
inputs[#inputs+1] = fsutil.join(inputdir, filename)
outputs[#outputs+1] = fsutil.join(outputdir, filename)
Expand Down

0 comments on commit 8d32f44

Please sign in to comment.