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