File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,11 @@ installed libraries instead, enable
119119This will reflect the performance of the Swift standard library
120120installed on the device, not the one included in the Swift root.
121121
122+ If a build fails with an error like ` cannot find X in scope ` , it may be because
123+ default toolchains don't give access to stdlib SPI. Try using a dev toolchain
124+ built locally or a dev snapshot from
125+ [ Swift.org] ( https://www.swift.org/install/ ) .
126+
122127### build-script using SwiftPM+LLBuild
123128
124129To build the benchmarks using build-script/swiftpm, one must build both
@@ -148,6 +153,15 @@ swift-source/swift/benchmark$ .build/release/SwiftBench
148153...
149154```
150155
156+ ### Troubleshooting
157+
158+ * To check what libraries benchmark is linked against, set the
159+ ` DYLD_PRINT_SEARCHING ` environment variable. E.g.
160+ ` export DYLD_PRINT_SEARCHING=1 ` .
161+ * To force linking with a locally built stdlib, use the ` DYLD_LIBRARY_PATH `
162+ environment variable. E.g. `export
163+ DYLD_LIBRARY_PATH=<path_to_build_folder>/Ninja-ReleaseAssert/swift-macosx-x86_64/lib/swift/macosx/x86_64`.
164+
151165## Editing in Xcode
152166
153167It is now possible to work on swiftpm benchmarks in Xcode! This is done by using
You can’t perform that action at this time.
0 commit comments