diff options
| author | ruki <[email protected]> | 2017-06-26 22:26:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-06-26 22:26:33 +0800 |
| commit | 08423656d08715670959b69c64957e9e9b1b3db1 (patch) | |
| tree | 8739a1ef0ed686ab83239910681b70c0dea858ad /xmake/plugins/project/vstudio/impl/vs201x.lua | |
| parent | f57db3954d227c29d15b68316e9b18838a55c3d4 (diff) | |
modify compiler and linker args
Diffstat (limited to 'xmake/plugins/project/vstudio/impl/vs201x.lua')
| -rw-r--r-- | xmake/plugins/project/vstudio/impl/vs201x.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x.lua b/xmake/plugins/project/vstudio/impl/vs201x.lua index 29b004030..a134bbb90 100644 --- a/xmake/plugins/project/vstudio/impl/vs201x.lua +++ b/xmake/plugins/project/vstudio/impl/vs201x.lua @@ -51,12 +51,12 @@ function _make_targetinfo(mode, arch, target) -- save compiler flags targetinfo.compflags = {} for _, sourcefile in ipairs(target:sourcefiles()) do - local _, compflags = compiler.compflags(sourcefile, target) + local _, compflags = compiler.compflags(sourcefile, {target = target}) targetinfo.compflags[sourcefile] = compflags end -- save linker flags - local _, linkflags = linker.linkflags(target) + local _, linkflags = linker.linkflags(target:get("kinds"), target:sourcekinds()) targetinfo.linkflags = linkflags -- ok |
