Skip to content

Commit 1329a9c

Browse files
authored
Merge pull request #35479 from 3405691582/OpenBSDUpdateDocs
[docs] Update docs for OpenBSD.
2 parents 43d254c + 36728d7 commit 1329a9c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/OpenBSD.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Getting started with Swift on OpenBSD
22

3-
Swift builds and runs on OpenBSD (tested on 6.8-beta), with some special considerations.
3+
Swift builds and runs on OpenBSD (tested on 6.8), with some special considerations.
44

55
## Preparing
66

@@ -66,7 +66,7 @@ These options are:
6666
* `--skip-build-clang-tools-extra` and `--skip-build-compiler-rt`: to ensure LLVM builds cleanly,
6767
* `--extra-cmake-options=`
6868
* `-DCMAKE_DISABLE_FIND_PACKAGE_Backtrace=TRUE,-DCMAKE_DISABLE_FIND_PACKAGE_LibXml2=TRUE,-DLLVM_VERSION_SUFFIX=''`: to ensure LLVM builds cleanly,
69-
* `-DSWIFT_BUILD_SOURCEKIT=OFF,-DSWIFT_BUILD_SYNTAXPARSERLIB=OFF`: to ensure Swift does not attempt to build libdispatch, which is not yet supported on OpenBSD,
69+
* `-DSWIFT_BUILD_SOURCEKIT=OFF,-DSWIFT_BUILD_SYNTAXPARSERLIB=OFF,-DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY=OFF`: to ensure Swift does not attempt to build libdispatch, which is not yet supported on OpenBSD,
7070
* `-DSWIFT_USE_LINKER=lld`: to specify that `lld` should be used over `gold`,
7171
* `-DCMAKE_INSTALL_DIR=/usr/local"`: to set the correct platform install directory.
7272

@@ -81,8 +81,11 @@ $ ./utils/build-script \
8181
-DLLVM_VERSION_SUFFIX='',\
8282
-DSWIFT_BUILD_SOURCEKIT=OFF,\
8383
-DSWIFT_BUILD_SYNTAXPARSERLIB=OFF,\
84+
-DSWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY=OFF,\
8485
-DSWIFT_USE_LINKER=lld,\
8586
-DCMAKE_INSTALL_DIR=/usr/local"
8687
```
8788

8889
You may wish to also supply the flag `--llvm-targets-to-build=host`, to speed up the LLVM build slightly.
90+
91+
For debug builds especially, consider also installing the `llvm` package and setting `-DCMAKE_AR=/usr/local/bin/llvm-ar` with the `extra-cmake-options` flag, to work around problems creating indexes to archives containing object files with large numbers of section headers.

0 commit comments

Comments
 (0)