- Download MSYS2
- Install MSYS2
- Open the MSYS2 MINGW64 Prompt
pacman -S git --noconfirmpacman -S mingw-w64-x86_64-cmake --noconfirmpacman -S mingw-w64-x86_64-ninja --noconfirmpacman -S mingw-w64-x86_64-gcc --noconfirmpacman -S mingw-w64-x86_64-llvm --noconfirmpacman -S mingw-w64-x86_64-zlib --noconfirmpacman -S mingw-w64-x86_64-zstd --noconfirmgit clone https://github.com/AdeptLanguage/Adeptcd Adeptmkdir build/mingw64/bin/cmake -B build -DCMAKE_BUILD_TYPE="Release" -DCMAKE_C_FLAGS="-w" -G Ninja/mingw64/bin/cmake --build buildbuild/adept tests/e2e/src/hello_world/main.adept -e
Install build tools:
- CMake
- Ninja
Install required dependencies:
llvm(preferably LLVM 19 or 18 or 17)zstd(for LLVM)zlib(for LLVM)libcurl-dev
Clone and build:
git clone https://github.com/AdeptLanguage/Adeptcd Adeptmkdir buildcmake -B build -DCMAKE_BUILD_TYPE="Release" -DCMAKE_C_FLAGS="-w" -G Ninjacmake --build buildbuild/adept tests/e2e/src/hello_world/main.adept -e
(May not be needed) - Depending on your setup, you may need to tell CMake where to find each library. This is done by setting environment variables.
LLVM_DIR=/opt/homebrew/opt/llvm zstd_DIR=/usr/local/opt/zstd cmake -B build -DCMAKE_BUILD_TYPE="Release" -DCMAKE_C_FLAGS="-w" -G Ninja
for example.
On Windows, LLVM is linked against statically by default.
You can specify -DADEPT_LINK_LLVM_STATIC=Off when configuring CMake to prefer dynamic linking if you like.
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,
git clone https://github.com/AdeptLanguage/Adeptcd Adeptmkdir buildcmake -B build -DCMAKE_BUILD_TYPE="Release" -DADEPT_LINK_LLVM_STATIC=On -DCMAKE_C_FLAGS="-w" -G Ninjacmake --build build