diff options
| author | ruki <[email protected]> | 2024-07-15 22:36:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-15 22:36:45 +0800 |
| commit | 8691433782a9d16b42d39603161909df034e0892 (patch) | |
| tree | 65d9bc67042bdcb46eafc2d968c3a048f92d913f | |
| parent | 7811d6e50a710760f4cee3a14e270d9fe894c673 (diff) | |
fix ldflags check
| -rw-r--r-- | xmake/core/package/package.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 776a40018..b4249c6a0 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -2403,7 +2403,7 @@ function _instance:_generate_build_configs(configs, opt) local links = table.wrap(configs.links) local ldflags = table.wrap(configs.ldflags) local frameworks = table.wrap(configs.frameworks) - if #links == 0 and #ldflags and #frameworks == 0 then + if #links == 0 and #ldflags == 0 and #frameworks == 0 then os.raise("package(%s): links not found!", self:name()) end end |
