diff options
| author | Arthur LAURENT <[email protected]> | 2022-08-07 03:44:04 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-08-07 03:44:04 +0200 |
| commit | c3adbbb8bf99185329511029b09483df2308eb59 (patch) | |
| tree | b471b0e68f7c08ad0c281acb382fa58ec376757d /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | c39a7060382929321332cf4fc3c00efa533ea758 (diff) | |
Code cleanup
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index 1d946d339..e61beb6f2 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -191,7 +191,6 @@ function generate_stl_headerunits_for_batchcmds(target, batchcmds, headerunits, -- build headerunits local common_args = {"-TP", exportheaderflag, "-c"} - local objectfiles = {} local depmtime = 0 for _, headerunit in ipairs(headerunits) do local bmifile = path.join(stlcachedir, headerunit.name .. get_bmi_extension()) @@ -229,7 +228,6 @@ function generate_user_headerunits_for_batchcmds(target, batchcmds, headerunits, -- build headerunits local common_args = {"-TP", exportheaderflag, "-c"} - local objectfiles = {} local projectdir = os.projectdir() local depmtime = 0 for _, headerunit in ipairs(headerunits) do @@ -275,7 +273,7 @@ function build_modules_for_batchcmds(target, batchcmds, objectfiles, modules, op local interfaceflag = get_interfaceflag(target) local referenceflag = get_referenceflag(target) - -- add + -- append module mapper flags for line in io.lines(mapper_file) do target:add("cxxflags", line, {force = true}) end @@ -458,6 +456,7 @@ function get_scandependenciesflag(target) return scandependenciesflag or nil end +-- append .obj to final link function append_headerunits_objectfiles(target) local linker_file = _get_linker_argument_file() |
