Skip to content

Commit e599f09

Browse files
Add xcrun warning for SDKROOT (#11)
* Add xcrun warning for SDKROOT * Update src/getting-started/setup.md Co-authored-by: Max Desiatov <max@desiatov.com> Co-authored-by: Max Desiatov <max@desiatov.com>
1 parent fdd4372 commit e599f09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/getting-started/setup.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ SwiftWasm Swift version 5.3 (swiftlang-5.3.0)
4848
Target: x86_64-apple-darwin19.6.0
4949
```
5050

51+
> Warning: `xcrun` finds executable binary based on `--toolchain` option or `TOOLCHAINS` environment variable, but it also sets `SDKROOT` as host target SDK (e.g. `MacOSX.sdk`). So you need to specify `-sdk` option as `/Library/Developer/Toolchains/swift-wasm-5.3.0-RELEASE.xctoolchain/usr/share/wasi-sysroot` when launching `swiftc` from xcrun. `swift build` or other SwiftPM commands automatically find SDK path based on target triple, so they don't require to specify it.
52+
53+
5154
## Linux
5255

5356
Packages for Linux are tar archives including a copy of the Swift compiler, linker, and related tools. You can install them anywhere as long as the extracted tools are in your PATH.

0 commit comments

Comments
 (0)