Skip to content

Build and compilation system ​

CMake-based C++ build with cross-platform packaging (DEB/RPM/AppImage/tarball), GCC JIT runtime compilation bindings, C intermediate representation for code generation, and native build integration.

Key files ​

  • cmake/ — CMake build system with platform dispatchers
  • src/lua_gccjit.h — libgccjit bindings for runtime C compilation
  • assets/lua/c-builder.fnl, assets/lua/c-ir.fnl — Fennel C compilation layer
  • assets/lua/native-build.fnl — native build integration

Dependencies ​

  • Depends on: Core Platform
  • Optional native dependency: libssh via pkg-config enables the SSH backend when SPACE_ENABLE_SSH=ON (the default). There is no project-enforced minimum version floor; if CMake cannot find libssh, Space still builds and SSH operations report structured unavailable-backend errors.

Dev notes ​

  • C Builder — C compilation via GCC JIT
  • C Ir — C intermediate representation
  • Gccjit — libgccjit binding details
  • Native Build — native C build integration

See also ​