1. Pypy
  2. Untitled project
  3. pypy

Commits

Maciej Fijalkowski  committed 976baea

improve caching

  • Participants
  • Parent commits 5a9a29b
  • Branches default

Comments (0)

Files changed (1)

File pypy/tool/gcc_cache.py

View file
     # Import 'platform' every time, the compiler may have been changed
     from pypy.translator.platform import platform
     cache_dir = cache_dir_root.join(cachename).ensure(dir=1)
+    c_files.extend([py.path.local(f) for f in eci.separate_module_files])
+    eci = ExternalCompilationInfo(**eci._copy_attributes())
+    eci.separate_module_files = ()
     filecontents = [c_file.read() for c_file in c_files]
     key = repr((filecontents, eci, platform.key()))
     hash = md5(key).hexdigest()