Possible arguments: (none), c++0x
,
c++11-lang
, gcc-c++11-lib
,
c++11-lib
, c11
,
openmp
, nestedfct
,
features
Determines which compiler to use based on any given wishes.
Use c++11-lang
if the port needs a
C++11-capable compiler, gcc-c++11-lib
if the
port needs the g++
compiler with a C++11
library, and c++11-lib
if the port also needs
a C++11-ready standard library. If the port needs a compiler
understanding C++0X, C11, OpenMP, or nested functions, the
corresponding parameters can be used. Use
features
to request a list of features
supported by the default compiler. After including
bsd.port.pre.mk
the port can inspect the
results using these variables:
COMPILER_TYPE
: the default compiler
on the system, either gcc or clang
ALT_COMPILER_TYPE
: the alternative
compiler on the system, either gcc or clang. Only set if
two compilers are present in the base system.
COMPILER_VERSION
: the first two
digits of the version of the default compiler.
ALT_COMPILER_VERSION
: the first two
digits of the version of the alternative compiler, if
present.
CHOSEN_COMPILER_TYPE
: the chosen
compiler, either gcc or clang
COMPILER_FEATURES
: the features
supported by the default compiler. It currently lists the
C++ library.
All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/
Questions that are not answered by the
documentation may be
sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.