mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Generating a statically-linked executable either with `-static-executable` or `-static-stdlib` that contains concurrency needs to link the concurrency libraries or the missing symbols will cause link failures. This patch adds dispatch and blocks runtime to the list of statically linked libraries. In the case of the static stdlib, it only adds them if the concurrency mechanisms use dispatch, otherwise it doesn't. For the static executable, it always adds them since that doesn't appear to be very configurable.
18 lines
223 B
Plaintext
18 lines
223 B
Plaintext
-static
|
|
-lswiftCore
|
|
-Xlinker
|
|
-undefined=pthread_self
|
|
-Xlinker
|
|
-undefined=pthread_once
|
|
-Xlinker
|
|
-undefined=pthread_key_create
|
|
-ldispatch
|
|
-lBlocksRuntime
|
|
-lpthread
|
|
-licui18nswift
|
|
-licuucswift
|
|
-licudataswift
|
|
-ldl
|
|
-lstdc++
|
|
-lm
|