Skip to content

Commit

Permalink
Updated HOW_TO_BUILD.md section to more clearly explain LLVM linkage …
Browse files Browse the repository at this point in the history
…choices
  • Loading branch information
IsaacShelton committed Sep 8, 2024
1 parent de77fd2 commit 06d2df4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions HOW_TO_BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- `pacman -S mingw-w64-x86_64-gcc --noconfirm`
- `pacman -S mingw-w64-x86_64-llvm --noconfirm`
- `pacman -S mingw-w64-x86_64-zlib --noconfirm`
- `pacman -S mingw-w64-x86_64-zstd --noconfirm`
- `git clone https://github.com/AdeptLanguage/Adept`
- `cd Adept`
- `mkdir build`
Expand Down Expand Up @@ -52,13 +53,19 @@ LLVM_DIR=/opt/homebrew/opt/llvm zstd_DIR=/usr/local/opt/zstd cmake -B build -DCM

for example.

# Linking LLVM Statically
# Linking LLVM Statically vs Dynamically

If you wish to link LLVM statically like the precompiled binaries do, you can specify `-DADEPT_LINK_LLVM_STATIC=On` when configuring with CMake.
### Windows

On Windows, this requires the additional libraries:
On Windows, LLVM is linked against statically by default.

- `pacman -S mingw-w64-x86_64-zstd --noconfirm`
You can specify `-DADEPT_LINK_LLVM_STATIC=Off` when configuring CMake to prefer dynamic linking if you like.

### macOS / Linux

On macOS and Linux, LLVM is linked against dynamically by default.

You can specify `-DADEPT_LINK_LLVM_STATIC=On` when configuring with CMake to prefer static linking if you like.

For example,

Expand Down

0 comments on commit 06d2df4

Please sign in to comment.