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
119
119
This will reflect the performance of the Swift standard library
120
120
installed on the device, not the one included in the Swift root.
121
121
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
+
122
127
### build-script using SwiftPM+LLBuild
123
128
124
129
To build the benchmarks using build-script/swiftpm, one must build both
@@ -148,6 +153,15 @@ swift-source/swift/benchmark$ .build/release/SwiftBench
148
153
...
149
154
```
150
155
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
+
151
165
## Editing in Xcode
152
166
153
167
It 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