We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f7b21c + eb46e08 commit b80b061Copy full SHA for b80b061
build_script.py
@@ -155,6 +155,9 @@ def build(args):
155
source_paths=" ".join(sourcePaths)))
156
run("{swiftc} -emit-library {build_dir}/XCTest.o "
157
"-L {foundation_build_dir} -lswiftGlibc -lswiftCore -lFoundation -lm "
158
+ # We embed an rpath of `$ORIGIN` to ensure other referenced
159
+ # libraries (like `Foundation`) can be found solely via XCTest.
160
+ "-Xlinker -rpath=\\$ORIGIN "
161
"-o {build_dir}/libXCTest.so".format(
162
swiftc=swiftc,
163
build_dir=build_dir,
0 commit comments