Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 1.25 KB

File metadata and controls

33 lines (29 loc) · 1.25 KB

NativeLink provides the following templates to use caching and remote execution:

  • bazel: C++ with local remote execution using Bazel. Provides the same toolchain during local and remote execution to share cache between those builds. Currently restricted to Linux. See Local Remote Execution for further details.
  • cmake: C/C++ with CMake using recc as the bridge to NativeLink. Cache-only by default. Compiles run locally and only their outputs travel through the cache. Works on Linux and macOS. Tutorial: Build CMake projects with NativeLink.

Getting started

Install Nix with flakes enabled, for instance install it via experimental-nix-installer.

Create a new directory, cd into it and replace TEMPLATE_NAME with the name of the template to initialize your project with

nix flake init -t github:TraceMachina/nativelink#TEMPLATE_NAME
git init
git add .

Enter the Nix environment with nix develop.

Optionally install direnv and create .envrc containing

use flake

to automatically enter the development environment.