LinuxCommandLibrary

gprbuild

GNAT project-aware Ada builder

TLDR

Build project

$ gprbuild -P [project.gpr]
copy
Build with configuration
$ gprbuild -P [project.gpr] -XBUILD_MODE=release
copy
Clean and build
$ gprbuild -P [project.gpr] --clean
copy
Parallel build
$ gprbuild -P [project.gpr] -j[4]
copy

SYNOPSIS

gprbuild [options] [project]

DESCRIPTION

gprbuild is the GNAT project-aware builder for Ada. It compiles Ada projects defined in GPR (GNAT Project) files, handling dependencies and build configuration automatically.
The tool manages compilation of Ada sources with incremental builds, supporting configuration through external variables and multiple build modes.

PARAMETERS

PROJECT

Project file (.gpr).
-P FILE
Project file.
-X NAME=VALUE
External variable.
-j N
Parallel jobs.
--clean
Clean before build.
-v
Verbose output.
--help
Display help information.

CAVEATS

Ada/GNAT specific. Requires GPR project file. Part of GNAT toolchain.

HISTORY

gprbuild is part of the GNAT Ada toolchain, developed by AdaCore for Ada project building.

SEE ALSO

gnat(1), gnatmake(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community