Skip to content

Commit 869931c

Browse files
authored
Merge pull request #17065 from sparkasaurusRex/doc-windowscrosscompile
2 parents c85a881 + 3a919b6 commit 869931c

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

docs/WindowsCrossCompile.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Additionally, the ICU headers and libraries need to be provided for the build.
3838
--extra-cmake-options=-DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER=FALSE,\
3939
-DCMAKE_AR=<path to llvm-ar>,\
4040
-DCMAKE_RANLIB=<path to llvm-ranlib>,\
41-
-DSWIFT_SDKS=WINDOWS,\
41+
-DSWIFT_SDKS='OSX;WINDOWS',\
4242
-DSWIFT_WINDOWS_x86_64_ICU_I18N_INCLUDE=<path to ICU i18n includes>,\
4343
-DSWIFT_WINDOWS_x86_64_ICU_UC_INCLUDE=<path to ICU UC includes>,\
4444
-DSWIFT_WINDOWS_x86_64_ICU_I18N=<path to ICU i18n lib>,\
@@ -47,19 +47,8 @@ Additionally, the ICU headers and libraries need to be provided for the build.
4747

4848
#### Linux
4949

50-
For Linux, you will also need to build the Linux SDK with the cmake options
51-
below.
52-
53-
```bash
54-
--extra-cmake-options=-DSWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER=FALSE,\
55-
-DCMAKE_AR=<path to llvm-ar>,\
56-
-DCMAKE_RANLIB=<path to llvm-ranlib>,\
57-
-DSWIFT_SDKS='LINUX;WINDOWS',\
58-
-DSWIFT_WINDOWS_x86_64_ICU_I18N_INCLUDE=<path to ICU i18n includes>,\
59-
-DSWIFT_WINDOWS_x86_64_ICU_UC_INCLUDE=<path to ICU UC includes>,\
60-
-DSWIFT_WINDOWS_x86_64_ICU_I18N=<path to ICU i18n lib>,\
61-
-DSWIFT_WINDOWS_x86_64_ICU_UC=<path to ICU UC lib>
62-
```
50+
For Linux, you will need to build the Linux SDK instead of the macOS SDK by
51+
replacing the cmake option with `-DSWIFT_SDKS='LINUX;WINDOWS'`.
6352

6453
## 4. Build the Swift runtime and standard library with `ninja`
6554
From the build directory, you can build the Swift runtime and standard library

0 commit comments

Comments
 (0)