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: doc/src/devdocs/build/build.md
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,8 @@ To run julia from anywhere you can:
60
60
61
61
- write `prefix=/path/to/install/folder` into `Make.user` and then run `make install`. If there is a version of Julia already installed in this folder, you should delete it before running `make install`.
62
62
63
+
Some of the options you can set to control the build of Julia are listed and documented at the beginning of the file `Make.inc`, but you should never edit it for this purpose, use `Make.user` instead.
64
+
63
65
Now you should be able to run Julia like this:
64
66
65
67
julia
@@ -239,10 +241,32 @@ For packaging Julia with LLVM, we recommend either:
239
241
- bundling a Julia-only LLVM library inside the Julia package, or
240
242
- adding the patches to the LLVM package of the distribution.
241
243
* A complete list of patches is available in on [Github](https://github.com/JuliaLang/llvm-project) see the `julia-release/15.x` branch.
242
-
* The only Julia-specific patch is the lib renaming (`llvm-symver-jlprefix.patch`), which should _not_ be applied to a system LLVM.
244
+
* The only Julia-specific patch is the lib renaming (`llvm7-symver-jlprefix.patch`), which should _not_ be applied to a system LLVM.
243
245
* The remaining patches are all upstream bug fixes, and have been contributed into upstream LLVM.
244
246
245
-
Using an unpatched or different version of LLVM will result in errors and/or poor performance. Though Julia can be built with newer LLVM versions, support for this should be regarded as experimental and not suitable for packaging.
247
+
Using an unpatched or different version of LLVM will result in errors and/or poor performance.
248
+
You can build a different version of LLVM from a remote Git repository with the following options in the `Make.user` file:
249
+
250
+
```make
251
+
# Force source build of LLVM
252
+
USE_BINARYBUILDER_LLVM = 0
253
+
# Use Git for fetching LLVM source code
254
+
DEPS_GIT = 1
255
+
# URL of the Git repository you want to obtain LLVM from:
256
+
LLVM_GIT_URL = ...
257
+
# Name of the branch to check out automatically
258
+
LLVM_BRANCH = standalone_rel_15_x
259
+
LLVM_SHA1 = $(LLVM_BRANCH)
260
+
261
+
# Other useful options:
262
+
# List of LLVM targets to build. It is strongly recommended to keep at least all the
263
+
# default targets listed in `deps/llvm.mk`, even if you don't necessarily need all of them.
264
+
# LLVM_TARGETS = ...
265
+
# Use ccache for faster recompilation in case you need to restart a build.
266
+
# USECCACHE = 1
267
+
```
268
+
269
+
Though Julia can be built with newer LLVM versions, support for this should be regarded as experimental and not suitable for packaging.
0 commit comments