@@ -308,7 +308,7 @@ def default_lib_path(data_dir: str,
308
308
('data_json' , str ), # path of <id>.data.json
309
309
('suppressed' , List [str ]), # dependencies that weren't imported
310
310
('child_modules' , List [str ]), # all submodules of the given module
311
- ('options' , Optional [Dict [str , bool ]]), # build options
311
+ ('options' , Optional [Dict [str , object ]]), # build options
312
312
('dep_prios' , List [int ]),
313
313
('interface_hash' , str ), # hash representing the public interface
314
314
('version_id' , str ), # mypy version for cache invalidation
@@ -907,6 +907,9 @@ def find_cache_meta(id: str, path: str, manager: BuildManager) -> Optional[Cache
907
907
if manager .options .quick_and_dirty :
908
908
# In quick_and_dirty mode allow non-quick_and_dirty cache files.
909
909
cached_options ['quick_and_dirty' ] = True
910
+ if not cached_options .get ('platform' ) and manager .options .skip_version_check :
911
+ # Older versions didn't write platform.
912
+ cached_options ['platform' ] = manager .options .platform
910
913
if cached_options != current_options :
911
914
manager .trace ('Metadata abandoned for {}: options differ' .format (id ))
912
915
return None
0 commit comments