diff options
| author | ruki <[email protected]> | 2022-12-02 23:01:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-02 23:01:20 +0800 |
| commit | 09113b27d3b5749b09716e8e0ec6c766b4662bd5 (patch) | |
| tree | 924c3c0a9e243e444cb049951afb1adc9678b920 /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | 7606fcbc83363b5c725ae6faf786afdd04c92e42 (diff) | |
remote unused code
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index da0f69535..092e23c24 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -208,8 +208,7 @@ end -- generate dependency files function generate_dependencies(target, sourcebatch, opt) - local toolchain = target:toolchain("msvc") - local scandependenciesflag = nil -- get_scandependenciesflag(target) + local msvc = target:toolchain("msvc") local scandependenciesflag = get_scandependenciesflag(target) local common_flags = {"-TP", scandependenciesflag} local cachedir = common.modules_cachedir(target) @@ -255,7 +254,8 @@ function generate_dependencies(target, sourcebatch, opt) table.insert(includedirs, includedir) end local ifile = path.translate(path.join(outputdir, path.filename(file) .. ".i")) - os.vrunv(compinst:program(), table.join(includedirs, defines, {"/nologo", get_cppversionflag(target), "/P", "-TP", file, "/Fi" .. ifile}), {envs = toolchain:runenvs()}) + os.vrunv(compinst:program(), table.join(includedirs, defines, + {"/nologo", get_cppversionflag(target), "/P", "-TP", file, "/Fi" .. ifile}), {envs = msvc:runenvs()}) local content = io.readfile(ifile) os.rm(ifile) return content |
