diff options
| author | Arthur LAURENT <[email protected]> | 2024-02-07 11:54:53 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-02-07 16:58:28 +0100 |
| commit | 618f75184179eafa6ae8bcd4c9e81acaeebc6b53 (patch) | |
| tree | ad305ed7909dd8deee1c89d08108bee88f310bdb /xmake/rules/c++/modules/modules_support | |
| parent | d98db4c10802a503dd824d0dcb15bacb76d29749 (diff) | |
use target:is_binary instead of target:kind() == "binary"
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/compiler_support.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/compiler_support.lua b/xmake/rules/c++/modules/modules_support/compiler_support.lua index d9d849454..d11e833fd 100644 --- a/xmake/rules/c++/modules/modules_support/compiler_support.lua +++ b/xmake/rules/c++/modules/modules_support/compiler_support.lua @@ -67,7 +67,7 @@ end function cull_objectfiles(target, modules, sourcebatch) -- don't cull for executables - if target:kind() == "binary" then + if target:is_binary() then return end @@ -76,7 +76,6 @@ function cull_objectfiles(target, modules, sourcebatch) local objectfile = target:objectfile(sourcefile) local module = modules[objectfile] local _, provide, _ = get_provided_module(module) - if provide then local fileconfig = target:fileconfig(sourcefile) local public = fileconfig and fileconfig.public |
