This repository contains Conan recipes for toolchains and command line utilities, for example the Emscripten SDK or other compilers. These recipes are maintained independently of Conan Center Index with flexible maintenance scopes.
A centralized toolchains repository provides a dedicated home for SDKs, compilers, cross-compilers, and experimental toolchains all in one place. It's a great fit for a wide range of users: beginners can easily install a toolchain alongside Conan and quickly cross-compile a project, while advanced users can integrate it into their workflow by adding it as a local recipe index and tailoring recipes as needed. It also supports bleeding-edge or niche toolchains that don't belong in the main index, offering maximum flexibility and control.
Ensure Conan is installed and available in your path. If it isn't, check the Conan downloads page to install it.
This repo can be added to Conan as a local recipe index repository. This means that Conan will retrieve recipes from it.
git clone https://github.com/conan-io/conan-toolchains.git
conan remote add conan-toolchains ./conan-toolchainsThis repository is still under active development, and no Conan remote with pre-built binaries is available yet.
There are specific profiles created to use the emsdk toolchain recipe.
Read the Emscripten Compiler Profiles for Conan readme to learn more about how to use them.
If you wish to contribute to conan-toolchains, follow these steps to clone the repository and install the required development dependencies.
git clone [email protected]:conan-io/conan-toolchains.git
cd conan-toolchains
# Recommended: Setup your virtual environment before installing dependencies
pip install pre-commit
We use pre-commit to enforce code style and formatting. To activate the pre-commit hooks:
pre-commit install
This will ensure that every time you commit changes, the code will be formatted and linted according to the project's standards.