diff options
| author | ruki <[email protected]> | 2024-07-25 12:47:50 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-25 12:47:50 +0800 |
| commit | deef593df0fc604b0da9fe735edf30e31c82af8c (patch) | |
| tree | 4be14639a997cdae2ce2da0fad7b36159ec119db /xmake/core/package/package.lua | |
| parent | 2eac22e42e4ebeebbcdd5e241fea4fcaf7a92e59 (diff) | |
| parent | 626b80e46c371a2723f204e2412339e73d6cbece (diff) | |
Merge pull request #5376 from Arthapz/fix-module-objectfiles-handling
Improve module objectfiles handling and moduleonly package
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index fd5d52433..fdfa59a42 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -572,6 +572,11 @@ function _instance:is_headeronly() return self:is_library() and self:extraconf("kind", "library", "headeronly") end +-- is module only? +function _instance:is_moduleonly() + return self:is_library() and self:extraconf("kind", "library", "moduleonly") +end + -- is top level? user top requires in xmake.lua function _instance:is_toplevel() local requireinfo = self:requireinfo() @@ -2404,7 +2409,7 @@ function _instance:_generate_build_configs(configs, opt) end -- check links for library - if self:is_library() and not self:is_headeronly() then + if self:is_library() and not self:is_headeronly() and not self:is_moduleonly() then local links = table.wrap(configs.links) local ldflags = table.wrap(configs.ldflags) local frameworks = table.wrap(configs.frameworks) |
