Skip to content

Commit 76069d6

Browse files
committed
Remove outdated Windows instructions
Custom build instructions for Windows have no longer been necessary since the introduction of swift-toolchain-sqlite.
1 parent fec47e6 commit 76069d6

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,12 @@ On most platforms you can build using:
2121
$ swift build
2222
```
2323

24-
However, on Windows, some additional work must be done by the developer.
25-
26-
Due to the default version of swift-tools-support-core that `Package.resolved` references, we must first update the package dependencies.
27-
28-
```
29-
swift package update
30-
```
31-
32-
Then, we can build the package using:
24+
However, on Windows, because Swift Package Manager does not differentiate between C/C++ and Swift targets and uses the Swift driver as the linker driver we must link in the Swift runtime into all targets manually:
3325

3426
```cmd
35-
swift build -Xcc -I -Xcc "%SystemDrive%\Library\sqlite-3.38.0\usr\include" -Xlinker -L -Xlinker "%SystemDrive%\Library\sqlite-3.38.0\usr\lib" -Xlinker "%SDKROOT%\usr\lib\swift\windows\x86_64\swiftCore.lib"
27+
swift build -Xlinker "%SDKROOT%\usr\lib\swift\windows\x86_64\swiftCore.lib"
3628
```
3729

38-
Because SQLite3 is a system library dependency, and there is no singular header and library search path, the developer must specify that. The path to SQLite3 may need to be adjusted if the library is not located at the specified location. Additionally, because Swift Package Manager does not differentiate between C/C++ and Swift targets and uses the Swift driver as the linker driver we must link in the Swift runtime into all targets manually.
39-
4030
To use `swift-driver` in place of the existing Swift driver, create a symbolic link from `swift` and `swiftc` to `swift-driver`:
4131

4232
```

0 commit comments

Comments
 (0)