Skip to content

CMake configuration

CMake does not natively support remote execution, to use remote execution with CMake you need to leverage tipi.build, a powerful CMake compatible build tool, and Goma.

Setup

  1. Install the Tipi RBE client by running the snippet below in a terminal with admin or sudo rights:

    Bash
    /bin/bash -c \
    "$(curl -fsSL https://raw.githubusercontent.com/tipi-build/cli/master/install/install_for_macos_linux.sh)"
    
    PowerShell
    1
    2
    3
    4
    [Net.ServicePointManager]::SecurityProtocol = "Tls, Tls11, Tls12, Ssl3"
    . { `
      iwr -useb https://raw.githubusercontent.com/tipi-build/cli/master/install/install_for_windows.ps1 `
    } | iex
    
  2. Tell Goma where the Remote Execution cluster is located by adding a line in the .tipi/env file:

    .tipi/env
    GOMA_SERVER_HOST=<your cluster>.cluster.engflow.com
    

Running builds

To be able to use remote execution, you first need to authenticate to your goma cluster:

Bash
tipi run goma_auth login
PowerShell
tipi run gclient
tipi run goma_auth login

Then to run a build:

Bash
tipi build . -t linux-rbe -j64