Skip to content

Standard LLVM/Clang pre-optimized toolchains for the Thrush programming language.

License

Notifications You must be signed in to change notification settings

thrushlang/toolchains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Toolchains

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)

Manual installation

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.

Linux

Create 'thrushlang' folder at %HOME% directory:

cd ~ && mkdir -p thrushlang/backends/llvm && cd thrushlang/backends/llvm

Download the latest toolchain release:

Unzip the toolchain:

  • Change the 'X' characters to the version you are going to use.
tar -xf thrushlang-toolchain-llvm-linux-x64-vX.X.X.tar.xz

Unzip the tools and executables:

find . -type f -name "*.xz" -execdir xz -d {} \;

~ You can now use thrushc and enable compilation to binaries correctly.

Windows

Create 'thrushlang' folder at %APPDATA% directory:

  • Change the '<username>' word with the user name of your Windows profile.
mkdir "C:/Users/<username>/AppData/Roaming/thrushlang/backends/llvm"

Download the latest toolchain release:

Run the toolchain installer

  • 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.

About

Standard LLVM/Clang pre-optimized toolchains for the Thrush programming language.

Topics

Resources

License

Stars

Watchers

Forks

Languages