Linux command
gprbuild 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Build project
gprbuild -P [project.gpr]
Build with configuration
gprbuild -P [project.gpr] -XBUILD_MODE=release
Clean and build
gprbuild -P [project.gpr] --clean
Parallel build
gprbuild -P [project.gpr] -j[4]
说明
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.
参数
- -P _FILE_
- Project file.
- -X _NAME=VALUE_
- External variable.
- -j _N_
- Parallel jobs.
- --clean
- Clean before build.
- -v
- Verbose output.
- --help
- Display help information.
FAQ
What is the gprbuild command used for?
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.
How do I run a basic gprbuild example?
Run `gprbuild -P [project.gpr]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -P _FILE_ do in gprbuild?
Project file.