Skip to content

Commit 2ad03a0

Browse files
dcbakereli-schwartz
authored andcommitted
coredata: actually use the correct machine for the dependency cache key
(cherry picked from commit 8f9eea8)
1 parent 4443094 commit 2ad03a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mesonbuild/coredata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ class DependencyCache:
147147
def __init__(self, builtins: options.OptionStore, for_machine: MachineChoice):
148148
self.__cache: T.MutableMapping[TV_DepID, DependencySubCache] = OrderedDict()
149149
self.__builtins = builtins
150-
self.__pkg_conf_key = options.OptionKey('pkg_config_path')
151-
self.__cmake_key = options.OptionKey('cmake_prefix_path')
150+
self.__pkg_conf_key = options.OptionKey('pkg_config_path', machine=for_machine)
151+
self.__cmake_key = options.OptionKey('cmake_prefix_path', machine=for_machine)
152152

153153
def __calculate_subkey(self, type_: DependencyCacheType) -> T.Tuple[str, ...]:
154154
data: T.Dict[DependencyCacheType, T.List[str]] = {

0 commit comments

Comments
 (0)