Skip to content

Latest commit

 

History

History
84 lines (63 loc) · 1.89 KB

build.md

File metadata and controls

84 lines (63 loc) · 1.89 KB

Build Instructions

Below are the instructions on how you can build Spiderfire. All instructions here assume you have installed rustup, rustc and cargo. Refer to https://rustup.rs/ for installation instructions.

Contents

Windows

MSVC

  1. Download and unzip MozTools 4.0 to C:\moztools-4.0.

  2. Download and install LLVM for Windows (64 bit) from LLVM Releases.

    • Note: When installing LLVM, choose to add LLVM to the system path.
  3. Follow the instructions at Just Installation.

  4. Set Environment Variables
    Powershell:

    .\build.ps1

    Command Prompt:

    build.bat
  5. Build with Cargo

    just build

MacOS

  1. Install Xcode command line tools, if you haven't.

    xcode-select --install
  2. Install Build Dependencies.

    brew install python3 llvm pkg-config make just
  3. Build with Cargo

    CC=clang CXX=clang++ just build

Linux

Debian, Ubuntu and Derivatives

  1. Install Build Dependencies.

    sudo apt install -y python3 python3-distutils autoconf2.13 clang llvm make pkg-config zlib1g-dev
  2. Follow the instructions at Just Installation.

  3. Build with Cargo

    CC=clang CXX=clang++ just build