Commit Graph

2 Commits

Author SHA1 Message Date
Jordan Rose
140b3cc37c [test] Tweak check-is-forwarding-module.py to handle multiple inputs (#23313)
And fix the error message printing while I'm at it.

I don't have a public test for this at the moment, but an Apple-
internal tool will use it. I hope to upstream that tool in the future.
2019-03-14 17:55:49 -07:00
Harlan Haskins
366bbf48b9 [ParseableInterface] Add ‘forwarding modules’
A ‘forwarding module’ is a YAML file that’s meant to stand in for a .swiftmodule file and provide an up-to-date description of its dependencies, always using modification times.

When a ‘prebuilt module’ is first loaded, we verify that it’s up-to-date by hashing all of its dependencies. Since this is orders of magnitude slower than reading mtimes, we’ll install a `forwarding module` containing the mtimes of the now-validated dependencies.
2019-03-07 11:36:15 -08:00