swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.66k stars 10.38k forks source link

Stop pulling sources from compiler into runtimes #77462

Open etcwilde opened 2 weeks ago

etcwilde commented 2 weeks ago

Description

Several libraries in the Swift runtimes pull sources from the compiler into the runtime libraries. This is bad since we want to carefully control what is pulled into the runtime libraries for ABI and API purposes.

Libraries pulling headers from the compiler:

Libraries pulling sources from the compiler:

These are the bits just going into swiftCore that I've noticed crossing the boundary.

Additional information

No response

etcwilde commented 2 weeks ago

The ELF swiftrt.o also pulls headers from the compiler source directory.