mirror of
https://github.com/apple/swift.git
synced 2026-10-10 13:50:43 +02:00
When Embedded Swift emits a symbol that was imported from another module, ensure that the symbol is emitted as a weak definition. This way, importing the same module (and using its symbol) into several different modules doesn't cause duplicate-symbol errors at link time. Rather, the linker will merge the different symbol definitions. This makes Embedded Swift libraries work without resorting to `-mergeable-symbols` or `-emit-empty-object-file`.
5.1 KiB
5.1 KiB