diff options
| author | ruki <[email protected]> | 2023-03-07 22:39:03 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-03-07 22:39:03 +0800 |
| commit | f588bd4dbba462629478e3185bf828e22df8bea0 (patch) | |
| tree | 576b5e7453c333e25f84f83e249090fb3c0eea37 /xmake/core/package/package.lua | |
| parent | 84e7c19365b5a8a1aa48682eb14759e81dc519d9 (diff) | |
improve config for base #3468
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 95c609951..f8a59bfc1 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1258,10 +1258,16 @@ end -- get the given configuration value of package function _instance:config(name) + local value local configs = self:configs() if configs then - return configs[name] + value = configs[name] end + -- we cannot get it from `self:get()`, because there are always some builtin configs. + if value == nil and self:base() then + value = self:base():config(name) + end + return value end -- set configuration value |
