Closed spino17 closed 3 months ago
1- you should use the solana's llvm-fork: https://github.com/hyperledger/solang-llvm.
2- you should cd
into stdlib
, and run make
.
3- run cargo clean and re-build.
hey @salaheldinsoliman, thanks for the steps. While running make
in stdlib
directory, I am getting below error:
error: unknown target triple 'sbf', please use -triple or -arch
make: *** [../target/bpf/solana.bc] Error 1```
Some target files are missing while building solang-0.3.3 on macos.
Steps to reproduce the behavior:
cmake -S llvm -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=lld -DCMAKE_INSTALL_PREFIX=$HOME/llvm-15.0.7
cmake --build . --target install
$HOME/llvm-15.0.7/bin
toPATH
cargo build
from top-level directorysolang --version
: 0.3.3