diff options
| author | ruki <[email protected]> | 2024-01-28 22:50:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-28 22:50:36 +0800 |
| commit | f383a6e46a9072c639d6df97bba161b8ec6add7c (patch) | |
| tree | 50ffd90605ce9a2a4dd5b4cb265199cc278becf5 | |
| parent | 4d8b4ad55eb3ccee0dd0e9c0fc0bafbb55ca04e6 (diff) | |
invalid package configs #4477
| -rw-r--r-- | xmake/core/package/package.lua | 6 | ||||
| -rw-r--r-- | xmake/modules/private/action/require/impl/package.lua | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index ff96e0822..d151a9317 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1414,6 +1414,12 @@ function _instance:displayname_set(displayname) self._DISPLAYNAME = displayname end +-- invalidate configs +function _instance:_invalidate_configs() + self._CONFIGS = nil + self._CONFIGS_FOR_BUILDHASH = nil +end + -- get the given configuration value of package function _instance:config(name) local value diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index 900041c35..6a860d99a 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -847,6 +847,7 @@ function _select_package_runtimes(package) if requireinfo then requireinfo.configs_overrided = requireinfo.configs_overrided or {} requireinfo.configs_overrided.runtimes = #runtimes_current > 0 and table.concat(runtimes_current, ",") or nil + package:_invalidate_configs() end end end |
