/ponyc

Pony Compiler

Primary LanguageC++BSD 2-Clause "Simplified" LicenseBSD-2-Clause

Getting help

Editor support

Installation

Mac OS X using Homebrew

$ brew update 
$ brew install ponyc

Linux

Gentoo

layman -a stefantalpalaru
emerge dev-lang/pony

A live ebuild is also available in the overlay (dev-lang/pony-9999) and for Vim users there's app-vim/pony-syntax.

Other distributions

We're transitioning to bintray. For now, please build from source.

Windows

You will need to build from source.

Building ponyc from source

Building on Linux Linux and OS X

First, install LLVM 3.7.1 using your package manager. You may need to install zlib, ncurses, pcre2, and ssl as well.

This will build ponyc and compile helloworld:

$ make config=release
$ ./build/release/ponyc examples/helloworld

Building on FreeBSD

First, install the required dependencies:

sudo pkg install gmake
sudo pkg install llvm37
sudo pkg install pcre2
sudo pkg install libunwind

This will build ponyc and compile helloworld:

$ make config=release
$ ./build/release/ponyc examples/helloworld

Building on Mac OS X Linux and OS X

You'll need llvm 3.7.1 and the pcre2 library to build Pony.

Either install them via homebrew:

$ brew update
$ brew install homebrew/versions/llvm37 pcre2 libressl

Or install them via macport:

$ sudo port install llvm-3.7 pcre2 libressl
$ sudo port select --set llvm mp-llvm-3.7

Then launch the build with Make:

$ make config=release
$ ./build/release/ponyc examples/helloworld

Building on Windows Windows

The LLVM 3.7 prebuilt binaries for Windows do NOT include the LLVM development tools and libraries. Instead, you will have to build and install LLVM 3.7 from source. You will need to make sure that the path to LLVM/bin (location of llvm-config) is in your PATH variable.

You will also need to build and install premake5 (not premake4) from source. We need premake5 in order to support current versions of Visual Studio.

You may also need to install zlib and ncurses.

$ premake5 vs2013
$ Release build with Visual Studio (ponyc.sln)
$ ./build/release/ponyc examples/helloworld