Skip to content

Compiling

dobragab edited this page Apr 24, 2017 · 2 revisions

Compiling

The build system is CMake. So after cloning the repository, building all components is simple:

cmake .
make

Sadly, make install isn't provided yet, you have to write it yourself.

As you saw in Components page, probably you don't want to build all components. You can disable the components with the following CMake defines. All of these are enabled by default.

  • Compiler helper: WITH_COMPILER
  • Interactive shell: WITH_CLING
  • Tests: WITH_TEST
  • Samples: WITH_SAMPLE

So you can build ccsh without cling dependency with:

cmake . -DWITH_CLING=OFF
make

ccsh is written with keeping in mind that once it will be ported to Windows, using native WIN32 API. Unfortunately, this hasn't happened yet.

See Getting ccsh for supported or unsupported, known packages for distribution.

Clone this wiki locally