diff options
| author | ruki <[email protected]> | 2024-07-12 23:42:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-12 23:42:45 +0800 |
| commit | f621130aacffb10b71d5a5a5f6891ea1efcd7e5f (patch) | |
| tree | b6abe881a03a118e76223e46c4ed8df222368115 | |
| parent | dc071bf7187826f4183a0f8bc51cb03faa279ae2 (diff) | |
check frameworks for package
| -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 31b402174..9bbca43c8 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -2401,7 +2401,8 @@ 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) - if #links == 0 then + local frameworks = table.wrap(configs.frameworks) + if #links == 0 and #frameworks == 0 then os.raise("package(%s): links not found!", self:name()) end end |
