diff options
| author | ruki <[email protected]> | 2024-07-14 19:23:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-14 19:23:46 +0800 |
| commit | 7811d6e50a710760f4cee3a14e270d9fe894c673 (patch) | |
| tree | 30486d330e5921f37e5cde75130de6c22ab5c942 | |
| parent | 604001279b281aa1dd4335d0d2455154b7c76f86 (diff) | |
improve to check package links
| -rw-r--r-- | xmake/core/package/package.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 9bbca43c8..776a40018 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -2401,8 +2401,9 @@ function _instance:_generate_build_configs(configs, opt) -- check links for library if self:is_library() and not self:is_headeronly() then local links = table.wrap(configs.links) + local ldflags = table.wrap(configs.ldflags) local frameworks = table.wrap(configs.frameworks) - if #links == 0 and #frameworks == 0 then + if #links == 0 and #ldflags and #frameworks == 0 then os.raise("package(%s): links not found!", self:name()) end end |
