From f588bd4dbba462629478e3185bf828e22df8bea0 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 7 Mar 2023 22:39:03 +0800 Subject: improve config for base #3468 --- xmake/core/package/package.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1