diff options
| author | ruki <[email protected]> | 2019-03-04 22:41:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-04 10:07:28 +0800 |
| commit | 81222c3b9d2aec685ae0869adf58130d707af9b0 (patch) | |
| tree | 59ec095bf88219c474e4f80fa276eb6245a3f9e6 /xmake/plugins/project/vstudio/impl/vs201x.lua | |
| parent | ee633ec6733376854fa8ea8a38da5b83fb47f5e4 (diff) | |
support yasm for vs201x plugin
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x.lua')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 0fd80605a..f4337392b 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -74,17 +74,19 @@ function _make_targetinfo(mode, arch, target) -- save object dir targetinfo.objectdir = target:objectdir() - -- save compiler flags - local firstcompflags=nil + -- save compiler flags and cmds + local firstcompflags = nil targetinfo.compflags = {} + targetinfo.compcmds = {} for sourcekind, sourcebatch in pairs(target:sourcebatches()) do if not sourcebatch.rulename then - for _, sourcefile in ipairs(sourcebatch.sourcefiles) do + for idx, sourcefile in ipairs(sourcebatch.sourcefiles) do local compflags = compiler.compflags(sourcefile, {target = target}) if not firstcompflags and (sourcekind == "cc" or sourcekind == "cxx") then firstcompflags = compflags end targetinfo.compflags[sourcefile] = compflags + targetinfo.compcmds[sourcefile] = compiler.compcmd("__sourcefile__", "__objectfile__", {sourcekind = sourcekind, target = target}) end end end |
