-
-
Notifications
You must be signed in to change notification settings - Fork 45
Building Felix From Source
To build Felix from source you need to run one of these commands:
bash on OSX using clang:
. buildscript/osxsetup.sh
make
Notes: OSX10 comes with a old clang. I upgraded from the provider website directly. C++11 support is required. Please use libc++, clang's library, NOT libstdc++, gcc's library. clang 3.7 works. [It is also possible to build with gcc5 but you should bootstrap with clang first]
bash on Linux using gcc>5:
. buildscript/linuxsetup.sh
make
[It is also possible to build with clang, but you should bootstrap with gcc first]
Console on Windows with
-
Visual Studio 14 environment variables set up
-
64 but Windows ocaml installed
-
Python3 on path
buildscript\winsetup.bat nmake
On Appveyor we do this to effect the setup:
install:
- call "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
- git clone -q https://github.com/felix-lang/win64ocaml.git
- move win64ocaml c:\ocaml
- set PATH=C:\Python35-x64;c:\ocaml\bin;%PATH%
- set PWD=.
- set PATH=build\release\host\bin;build\release\host\lib\rtl;%PATH%
- set FLX_MIN_MEM=10000
If you have the "free" compilers you will have to use the 32->64 bit cross compiler tools instead. Be warned standard vsvarsall.bat has a bug and doesn't setup the correct environment for 32->64 cross compiler.
Cygwin64: Just pretend you're running Linux.