swift
31a0b600 - [ParseableInterface] Don't serialize resource directory deps and stop adding cached modules to the dependency tracker

Commit
6 years ago
[ParseableInterface] Don't serialize resource directory deps and stop adding cached modules to the dependency tracker This patch modifies ParseableInterfaceBuilder::CollectDepsForSerialization to avoid serializing dependencies from the runtime resource path into the swiftmodules generated from .swiftinterface files. This means the module cache should now be relocatable across machines. It also modifies ParseableInterfaceModuleLoader to never add any dependencies from the module cache and prebuilt cache to the dependency tracker (in addition to the existing behaviour of not serializing them in the generated swiftmodules). As a result, CollectDepsForSerialization no longer checks if the dependencies it is given come from the cache as they are provided by the dependency tracker. It now asserts that's the case instead.
Author
Nathan Hawes
Committer
Nathan Hawes
Parents
  • include/swift
    • Frontend
      • File
        ParseableInterfaceModuleLoader.h
    • Serialization
      • File
        SerializedModuleLoader.h
  • lib
    • Frontend
      • File
        ParseableInterfaceModuleLoader.cpp
    • Serialization
      • File
        SerializedModuleLoader.cpp
  • test/ParseableInterface/ModuleCache
    • File
      SDKDependencies.swift
    • File
      module-cache-init.swift