summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/msvc.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2022-08-05 04:44:30 +0200
committerArthur LAURENT <[email protected]>2022-08-05 04:44:30 +0200
commit4cdf4838df5d5903b8d2ac31c9a169c5d88a2ebb (patch)
tree26390da86f9d3e4ce24a4b30de5103d671403a70 /xmake/rules/c++/modules/modules_support/msvc.lua
parent9051b99608fe2f339eea7ac4c9eab8b799e230df (diff)
outputdir is never nil
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua
index 2c3818995..3f371c5c7 100644
--- a/xmake/rules/c++/modules/modules_support/msvc.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc.lua
@@ -180,10 +180,10 @@ function generate_user_headerunits(target, batchcmds, headerunits, opt)
batchcmds:mkdir(outputdir)
local bmifilename = path.basename(objectfile) .. get_bmi_extension()
- local bmifile = (outputdir and path.join(outputdir, bmifilename) or bmifilename)
+ local bmifile = path.join(outputdir, bmifilename)
batchcmds:mkdir(path.directory(objectfile))
- local args = {headernameflag .. headerunit.type, path.normalize(headerunit.path), ifcoutputflag, outputdir, "/Fo" .. objectfile}
+ local args = {headernameflag .. headerunit.type, headerunit.path, ifcoutputflag, outputdir, "/Fo" .. objectfile}
batchcmds:show_progress(opt.progress, "${color.build.object}generating.cxx.headerunit.bmi %s", headerunit.name)
batchcmds:vrunv(compinst:program(), table.join(compinst:compflags({target = target}), common_args, args), {envs = vcvars})