Add a description for USES=compiler.
Reviewed by: bapt
This commit is contained in:
parent
88cfe1e6fd
commit
ae5b71284b
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=43217
1 changed files with 36 additions and 0 deletions
|
@ -59,6 +59,42 @@
|
|||
information see <xref linkend="using-cmake"/>.</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><literal>compiler</literal></entry>
|
||||
<entry>(none), <literal>c++11-lang</literal>,
|
||||
<literal>c++11-lib</literal>, <literal>c11</literal>,
|
||||
<literal>openmp</literal>, <literal>features</literal></entry>
|
||||
|
||||
<entry>Determines which compiler to use based on any given wishes.
|
||||
Use <literal>c++11-lang</literal> if the port needs a C+11-capable
|
||||
compiler, and <literal>c++11-lib</literal> if the port also needs
|
||||
a C++11-ready standard library. If the port needs a compiler
|
||||
understanding C11 or OpenMP, the corresponding parameters can be
|
||||
used. Use <literal>features</literal> to request a list of features
|
||||
supported by the default compiler. After including
|
||||
<filename>bsd.port.pre.mk</filename> the port can inspect the results
|
||||
using these variables:
|
||||
<itemizedlist>
|
||||
<listitem><para><varname>COMPILER_TYPE</varname>: the default
|
||||
compiler on the system, either gcc or clang</para></listitem>
|
||||
<listitem><para><varname>ALT_COMPILER_TYPE</varname>: the
|
||||
alternative compiler on the system, either gcc or clang.
|
||||
Only set if two compilers are present in the base
|
||||
system.</para></listitem>
|
||||
<listitem><para><varname>COMPILER_VERSION</varname>: the first two
|
||||
digits of the version of the default
|
||||
compiler.</para></listitem>
|
||||
<listitem><para><varname>ALT_COMPILER_VERSION</varname>: the first
|
||||
two digits of the version of the alternative compiler, if
|
||||
present.</para></listitem>
|
||||
<listitem><para><varname>CHOSEN_COMPILER_TYPE</varname>: the
|
||||
chosen compiler, either gcc or clang</para></listitem>
|
||||
<listitem><para><varname>COMPILER_FEATURES</varname>: the features
|
||||
supported by the default compiler. It currently lists the
|
||||
C++ library.</para></listitem>
|
||||
</itemizedlist></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><literal>desktop-file-utils</literal></entry>
|
||||
<entry>(none)</entry>
|
||||
|
|
Loading…
Reference in a new issue