### Setting Up Prerequisites Currently, only Ubuntu 14.04+ is officially supported as primary development environment. There are several dependencies, that should be installed manually. The following list is required for building: - `gcc` or any C99-compliant compiler - native - arm-none-eabi - `cmake` >= `2.8.12.2` - `bash` >= `4.3.11` - `cppcheck` >= `1.61` - `vera++` >= `1.2.1` - `python` >= `2.7.6` ```bash sudo apt-get install gcc g++ gcc-arm-none-eabi cmake cppcheck vera++ python ``` To make our scripts run correctly, several shell utilities should be available on the system: - `find` - `awk` - `wget` ### Building Debug Version To build debug version for Linux: ```bash python tools/build.py --debug ``` To build debug version for Linux without LTO (Link Time Optimization): ```bash python tools/build.py --debug --lto=off ``` Add custom arguments to CMake: ```bash python tools/build.py --cmake-param CMAKE_PARAM ``` Add toolchain file: The cmake dir already contains some usable toolchain files. ```bash python tools/build.py --toolchain TOOLCHAIN ``` Use (jerry|compiler-default|external libc) libc: ```bash python tools/build.py --libc LIBC ``` The possible arguments are `jerry` , `compiler` , `` To get more available buildoptions for Linux: ```bash python tools/build.py --help ``` ### Checking Patch ```bash python tools/run-tests.py --precommit ```