Skip to content

Commit a0caac5

Browse files
committed
Add documentation on JSC_UNIFIED_BUILD
1 parent 1f1bc18 commit a0caac5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/build-instructions.md

+2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ If you want to build just the 64bit components, use `-DTARGET_i386=off` to disab
156156
157157
Another way to speed up the build is to run `make` with multiple jobs. For this, run `make -j8` instead, where 8 is a number of current jobs to run of your choosing. In general, avoid running more jobs than twice the amount CPU cores of your machine.
158158
159+
If you still want to build JavaScriptCore and have a bit of RAM to spare, JavaScriptCore also supports a build mode known as ["unified builds"](https://blogs.gnome.org/mcatanzaro/2018/02/17/on-compiling-webkit-now-twice-as-fast/). This build mode can cut JSC build times in half, at the expense of causing slightly higher RAM usage. This build mode can be enabled in Darling by adding `-DJSC_UNIFIED_BUILD=ON` when configuring the build.
160+
159161
If you run LLDB and encounter messages indicating a lack of debug symbols, make sure you are doing a debug build. To do this, use the `-DCMAKE_BUILD_TYPE=Debug`.
160162
161163
Darling tries to stick to a standard macOS installation as much as possible. However, if you would like to build and install some additional packages (such as GNU tar), you can add `-DADDITIONAL_PACKAGES=ON`.

0 commit comments

Comments
 (0)