Skip to content

wojtekmach/mix_zig_cc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MixZigCC

A proof of concept of using zig cc to cross-compile NIFs for these targets:

  • aarch64-linux
  • x86_64-linux
  • x86_64-macos

See examples/hello/c_src/hello_nif.c, examples/hello/mix.exs.

Usage

iex> Mix.install([{:hello, github: "wojtekmach/mix_zig_cc", sparse: "examples/hello"}])
iex> Hello.hello
:world

With Docker:

$ docker run --rm -it elixir:1.12 iex
iex> Mix.install([{:hello, github: "wojtekmach/mix_zig_cc", sparse: "examples/hello"}])
iex> Hello.hello
:world

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages