Skip to content

Commit

Permalink
update msvc.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthapz committed Nov 30, 2022
1 parent 97c36a8 commit 040172d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xmake/rules/c++/modules/modules_support/msvc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function generate_dependencies(target, sourcebatch, opt)
os.vrunv(compinst:program(), table.join(compinst:compflags({target = target}), common_flags, flags), {envs = vcvars})
else
common.fallback_generate_dependencies(target, jsonfile, sourcefile, function(file)
local compinst = target:compiler("cxx")
local ifile = path.translate(path.join(outputdir, path.filename(file) .. ".i"))
os.vrunv(compinst:program(), table.join(compinst:compflags({target = target}), {"/TP", "/P", file, "/Fi" .. ifile}))
return io.readfile(ifile)
Expand Down

0 comments on commit 040172d

Please sign in to comment.