apple / swift-foundation

The Foundation project
Apache License 2.0
2.28k stars 135 forks source link

[CMake] Autolink static libraries for foundation_static build #689

Closed jmschonfeld closed 2 weeks ago

jmschonfeld commented 2 weeks ago

For private dependencies, the compiler needs to know to link the extra static libraries when building against the static stdlib. These extra flags ensure that when linking against libFoundationEssentials.a that the compiler also links lib_CShims.a and lib_FoundationCollections.a and that when linking against libFoundationInternationalization.a that the compiler also links lib_CShims.a and lib_FoundatonICU.a