This repository stores all the toolchains that contain backend compilers, which allow thrushc to effectively compile to a given architecture. This repository is also used by the thrush package manager (thorium) to download, install, and configure the compiler for proper operation on the hosted system.
This repository contains toolchains with:
- LLVM tools precompiled (v17.0.6)
- Clang precompiled (v17.0.6)
Note
The Thorium package manager is responsible for automatically installing the toolchains on each operating system, using the thorium install
command. You can do this manually, but it's not recommended.
cd ~ && mkdir -p thrushlang/backends/llvm && cd thrushlang/backends/llvm
- Change the 'X' characters to the version you are going to use.
tar -xf thrushlang-toolchain-llvm-linux-x64-vX.X.X.tar.xz
find . -type f -name "*.xz" -execdir xz -d {} \;
~ You can now use thrushc
and enable compilation to binaries correctly.
- Change the '<username>' word with the user name of your Windows profile.
mkdir "C:/Users/<username>/AppData/Roaming/thrushlang/backends/llvm"
- Change the 'X' characters to the version you are going to use.
.\thrushlang-toolchain-llvm-windows-x64-vX.X.X.exe
~ You can now use thrushc
and enable compilation to binaries correctly.