diff options
| author | Arthur LAURENT <[email protected]> | 2022-08-07 12:41:58 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2022-08-07 12:41:58 +0200 |
| commit | b4fa2913604afba00cc09572340ce44389fb5151 (patch) | |
| tree | d26ebdf848ab6a6561b5f88966bf8cc112377406 /xmake/rules/c++/modules/modules_support/msvc.lua | |
| parent | dffff05e4c8048e4fb379275382493dcf35483c4 (diff) | |
Improve code
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/msvc.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua index 1728d59f1..7bb9c97b5 100644 --- a/xmake/rules/c++/modules/modules_support/msvc.lua +++ b/xmake/rules/c++/modules/modules_support/msvc.lua @@ -459,13 +459,12 @@ end -- append .obj to final link function append_headerunits_objectfiles(target) local linker_file = _get_linker_argument_file() - for line in io.lines(linker_file) do - if target:kind() == "binary" then + if target:is_binary() then target:add("ldflags", line, {force = true}) - elseif target:kind() == "static" then + elseif target:is_static() == "static" then target:add("arflags", line, {force = true}) - elseif target:kind() == "shared" then + elseif target:is_shared() == "shared" then target:add("shflags", line, {force = true}) end end |
