Skip to content

Commit 8c8f5a3

Browse files
authored
Merge pull request swiftlang#33 from benlangmuir/xcconfig-workaround
[build] Update xcconfig overrides with workarounds from SR-9292
2 parents 75fb5bd + 2d9a2ba commit 8c8f5a3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

overrides.xcconfig

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
OTHER_LDFLAGS = $(inherited) -framework CoreServices
1+
// These link requirements only show issues in Xcode because it does dynamic linking, which enforce
2+
// the dependency immediately, while swiftpm on the command line defaults to static linking, which
3+
// means there is only an issue if the final image cannot find needed symbols.
4+
//
5+
// * CoreServices is used by IndexStoreDB's C++ code and cannot use autolinking.
6+
// * ncurses and sqlite are used by llbuild (dependency of swiftpm) from C++ code
7+
OTHER_LDFLAGS = $(inherited) -framework CoreServices -lncurses -lsqlite3
8+
9+
// Required to trigger a workaround in llbuild headers (dependency of swiftpm).
10+
GCC_PREPROCESSOR_DEFINITIONS = SWIFT_PACKAGE=1

0 commit comments

Comments
 (0)