Documentation
¶
Overview ¶
Package cpp provides a C++ builder that uses system-installed g++ and clang++ compilers.
Unlike other builders that download compiler toolchains, this package discovers compilers already present on the host (e.g. /usr/bin/g++-13, /usr/bin/clang++-18) and mounts them into the sandbox for compilation.
Version IDs follow the format "g++<semver>" or "clang++<semver>", for example "g++13.3.0" or "clang++18.1.3". The default version is "g++13.3.0".
Import this package for its side effects to register the builder:
import _ "github.com/Highload-fun/builders/cpp"
Index ¶
Constants ¶
const BuilderId = "cpp"
BuilderId is the identifier used to register and look up this builder.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cpp ¶
type Cpp struct {
// contains filtered or unexported fields
}
Cpp implements the builders.Builder interface for C++ using system-installed g++ and clang++ compilers.