You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libswift/README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,13 +42,13 @@ With the compiler from step 1, a minimal subset of the standard library is built
42
42
43
43
This library will be less optimized than the final library build.
44
44
45
-
In case the build mode is `bootstrapping-with-hostlibs`, only the swiftmodule files of the library are built, but not the binaries. The binaries are not needed because the compiler (and `sil-opt`) link against the system swift libraries.
45
+
This step is skipped when the build mode is `bootstrapping-with-hostlibs`.
46
46
47
47
#### 3. The level-1 _libswift_
48
48
49
49
The build outputs of level-1 are stored in the `bootstrapping1` directory under the main build directory.
50
50
51
-
The _libswift_ library is built using the level-0 compiler and standard library from step 1. and 2.
51
+
The _libswift_ library is built using the level-0 compiler and standard library from step 2 - or the OS libraries in case of `bootstrapping-with-hostlibs`.
52
52
53
53
#### 4. The level-1 compiler
54
54
@@ -60,11 +60,13 @@ Unless the build mode is `bootstrapping-with-hostlibs`, the level-1 compiler dyn
60
60
61
61
Like in step 2, a minimal subset of the standard library is built, using the level-1 compiler from step 4.
62
62
63
-
Unless the build mode is `bootstrapping-with-hostlibs`, in this step, the build system redirects the compiler's dynamic library path to the level-0 library (by setting `DY/LD_LIBRARY_PATH` in `SwiftSource.cmake`:`_compile_swift_files`). This is needed because the level-1 libraries are not built, yet.
63
+
In this step, the build system redirects the compiler's dynamic library path to the level-0 library (by setting `DY/LD_LIBRARY_PATH` in `SwiftSource.cmake`:`_compile_swift_files`). This is needed because the level-1 libraries are not built, yet.
64
+
65
+
This step is skipped when the build mode is `bootstrapping-with-hostlibs`.
64
66
65
67
#### 6. The final _libswift_
66
68
67
-
The final _libswift_ is built with the level-1 compiler and standard library from step 4. and 5.
69
+
The final _libswift_ is built with the level-1 compiler and standard library from step 5 - or the OS libraries in case of `bootstrapping-with-hostlibs`.
0 commit comments