Skip to content

Commit

Permalink
[build] Update xcconfig overrides with workarounds from SR-9292
Browse files Browse the repository at this point in the history
This fixes building the generated Xcode project.
  • Loading branch information
benlangmuir committed Dec 6, 2018
1 parent bf4c8bc commit 2d9a2ba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion overrides.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
OTHER_LDFLAGS = $(inherited) -framework CoreServices
// These link requirements only show issues in Xcode because it does dynamic linking, which enforce
// the dependency immediately, while swiftpm on the command line defaults to static linking, which
// means there is only an issue if the final image cannot find needed symbols.
//
// * CoreServices is used by IndexStoreDB's C++ code and cannot use autolinking.
// * ncurses and sqlite are used by llbuild (dependency of swiftpm) from C++ code
OTHER_LDFLAGS = $(inherited) -framework CoreServices -lncurses -lsqlite3

// Required to trigger a workaround in llbuild headers (dependency of swiftpm).
GCC_PREPROCESSOR_DEFINITIONS = SWIFT_PACKAGE=1

0 comments on commit 2d9a2ba

Please sign in to comment.