compiler property

String? compiler
final

Path to the C++ compiler executable.

Example: /opt/llvm-18/bin/clang++ or /usr/bin/g++-14.

When null (default), the system default compiler is used (usually g++ or whatever cc/c++ resolves to).

Passed as -DCMAKE_CXX_COMPILER=<path>. CMake will auto-detect the corresponding C compiler and toolchain from the same directory.

Implementation

final String? compiler;