This repository contains an LLVM-based Compiler Toolchain for Solidity and Yul.
To run the unit and CLI tests, execute the following command from the repository root:
cargo testIf you have multiple LLVM builds in your system, ensure that you choose the correct one to build the compiler.
The environment variable LLVM_SYS_170_PREFIX sets the path to the directory with LLVM build artifacts, which typically ends with target-llvm/build-final.
For example:
export LLVM_SYS_170_PREFIX="${HOME}/src/solx/target-llvm/build-final"If you suspect that the compiler is not using the correct LLVM build, check by running set | grep LLVM, and reset all LLVM-related environment variables.
For reference, see llvm-sys and Local LLVM Configuration Guide.
solx is licensed under GNU General Public License v3.0.
solx is statically linked with a fork of solc, the Solidity compiler.