Skip to content

A standalone executable for compiling native code for Erlang.

License

Notifications You must be signed in to change notification settings

skunkwerks/enc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erlang Native Compiler

Since rebar3 refuses to add support for NIFs I've created this self contained escript to compile native code. This is based on rebar2 by removing everything unrelated to the port compiler.

Usage

  1. Clone this repository
  2. Run make in this directory
  3. Copy enc to your project and commit it
  4. Add these (or similar) hooks to your rebar.config:
{pre_hooks, [{"", compile, "./enc compile"}]}.
{post_hooks, [{"", clean, "./enc clean"}]}.

After that enc should read your old rebar.config port\_specs and port\_env settings as expected (it is rebar2's port compiler after all...).

Compatibility Note

Remember that you'll want to make sure and build enc with the oldest Erlang VM you want to support.

About

A standalone executable for compiling native code for Erlang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 99.9%
  • Other 0.1%