Skip to content

deephacks/nim2-buildroot-toolchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nim2-buildroot-toolchain

This project provides a Docker buildroot cross-compilation toolchain for building fully static musl executables for C/C++ and Nim.

Static linking results in binaries that have all the necessary libraries bundled within, eliminating dependency issues, and runs on any Linux distribution.

Support for openssl, pcre, tree-sitter, libpq, libgit2, libmagic, xxhash, libcurl, libsqlite is included and more.

Usage

# build buildroot and toolchain images
just build-buildroot build-toolchain build-nim

# build nim program
docker run -ti --rm -u docker -v $(pwd):$(pwd) -w $(pwd) nim-2.0.0 c test.nim

References

  • just - used for building project
  • earthly - make for docker

About

nim2 static toolchain for amd64 using buildroot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published