mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
Some notes: * I am purposely trying to not do something too crazy here. My hope is that this can tied us over until we can remove a bunch of build-script logic (after build-script-impl is destroyed). * Given this need for simplicity, I purposely did something really simple: I assumed the build-graph was a DAG. This makes it really easy to compute a topological ordering just by computing RPOT numbers from POT numbers. That is what I did in this implementation. I haven't wired it up to anything and just added a simple test that shows how it can properly infer from a toy dependency tree the dependencies of a "toy swiftpm" project.