Skip to content

Commit 2d9a2ba

Browse files
committed
[build] Update xcconfig overrides with workarounds from SR-9292
This fixes building the generated Xcode project.
1 parent bf4c8bc commit 2d9a2ba

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)