Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 99f8d78

Browse files
authored
FAQ about other build paths than .build #80
1 parent 70e36ed commit 99f8d78

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ Though in most cases sourcekit-lsp and sourcekite should produce better results
6464

6565
| Config | Type | Default | Description |
6666
| ---------------------------------- | ---------- | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
67-
| `sourcekit-lsp.serverPath` | `string` | | The path of the sourcekit-lsp executable\nIn SDE: defaults to the toolchain's sourcekit-lsp. |
68-
| `sourcekit-lsp.toolchainPath` | `string` | | The path of the swift toolchain.\nIn SDE: defaults to Xcode's default toolchain. |
67+
| `sourcekit-lsp.serverPath` | `string` | | The path of the sourcekit-lsp executable. In SDE: defaults to the toolchain's sourcekit-lsp. |
68+
| `sourcekit-lsp.toolchainPath` | `string` | | The path of the swift toolchain. In SDE: defaults to Xcode's default toolchain. |
6969
| `swift.languageServerPath` | `string` | `/usr/local/bin/langserver-swift` | [DEPRECATED] The fully qualified path to the Swift Language Server executable. |
7070
| `swift.path.sourcekite` | `string` | | The fully path to the sourcekite(SDE's LS backend). |
7171
| `swift.path.swift_driver_bin` | `string` | `/usr/bin/swift` | The fully path to the swift driver binary. |
@@ -206,6 +206,21 @@ Since Xcode 11.4, you may use its built-in support for sourcekit-lsp
206206

207207
Go to vscode `OUTPUT` window, then select `SPM`. The `OUTPUT` window will tell you what's wrong.
208208

209+
### I'd like to have a different build paths than usually. How can I achieve that?
210+
211+
You can compile your app using a command like `swift build --build-path "./.build-macos"` on macOS and `swift build --build-path "./.build-linux"` on Linux, e.g. from within a docker container, you just need to add the appropriate building parameter:
212+
213+
```
214+
// .vscode/settings.json
215+
{
216+
"sde.swiftBuildingParams": [
217+
"build",
218+
"--build-path",
219+
"./.build-macos"
220+
]
221+
}
222+
```
223+
209224
### Other questions?
210225

211226
If so, file an [issue](https://github.com/vknabel/vscode-swift-development-environment/issues), please :)

0 commit comments

Comments
 (0)