xref: /dflybsd-src/etc/defaults/compilers.conf (revision 5b01f675922a18aae6c637f285125b8d29348de1)
11c4f2fa4SSascha Wildner#
20bd9ff77SSascha Wildner# Copyright (c) 2014 The DragonFly Project.  All rights reserved.
30bd9ff77SSascha Wildner#
40bd9ff77SSascha Wildner# Redistribution and use in source and binary forms, with or without
50bd9ff77SSascha Wildner# modification, are permitted provided that the following conditions
60bd9ff77SSascha Wildner# are met:
70bd9ff77SSascha Wildner#
80bd9ff77SSascha Wildner# 1. Redistributions of source code must retain the above copyright
90bd9ff77SSascha Wildner#    notice, this list of conditions and the following disclaimer.
100bd9ff77SSascha Wildner# 2. Redistributions in binary form must reproduce the above copyright
110bd9ff77SSascha Wildner#    notice, this list of conditions and the following disclaimer in
120bd9ff77SSascha Wildner#    the documentation and/or other materials provided with the
130bd9ff77SSascha Wildner#    distribution.
140bd9ff77SSascha Wildner# 3. Neither the name of The DragonFly Project nor the names of its
150bd9ff77SSascha Wildner#    contributors may be used to endorse or promote products derived
160bd9ff77SSascha Wildner#    from this software without specific, prior written permission.
170bd9ff77SSascha Wildner#
180bd9ff77SSascha Wildner# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
190bd9ff77SSascha Wildner# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
200bd9ff77SSascha Wildner# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
210bd9ff77SSascha Wildner# FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
220bd9ff77SSascha Wildner# COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
230bd9ff77SSascha Wildner# INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
240bd9ff77SSascha Wildner# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
250bd9ff77SSascha Wildner# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
260bd9ff77SSascha Wildner# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
270bd9ff77SSascha Wildner# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
280bd9ff77SSascha Wildner# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
290bd9ff77SSascha Wildner# SUCH DAMAGE.
300bd9ff77SSascha Wildner#
311c4f2fa4SSascha Wildner
32571f588aSJohn Marino
33571f588aSJohn MarinoSTD_INCOPT="-nostdinc -iprefix ${INCPREFIX} -iwithprefixbefore /usr/include"
34571f588aSJohn MarinoDPORT_GCC_STD_INCOPTXX="-isystem /usr/local/lib/${CCVER}/include/c++ \
357a38cb15SJohn Marino	-isystem /usr/local/lib/${CCVER}/include/c++/${MACHARCH}-portbld-dragonfly${MACHREL}"
360cbc2193SSascha WildnerDPORT_CLANG_STD_INCOPTXX="-cxx-isystem /usr/include/c++/8.0"
37571f588aSJohn Marino
38571f588aSJohn Marino
39571f588aSJohn Marino# For each custom compiler definition, it is mandatory to define the
40571f588aSJohn Marino# following variables:
41571f588aSJohn Marino#     <CCVER>_CC         (path to C compiler)
42571f588aSJohn Marino#     <CCVER>_CXX        (path to C++ compiler)
43571f588aSJohn Marino#     <CCVER>_CPP        (path to pre-processor)
44571f588aSJohn Marino#     <CCVER>_INCOPT     (include options for cc, c++ and cpp)
45571f588aSJohn Marino#     <CCVER>_INCOPTCXX  (extra include options for c++)
46571f588aSJohn Marino#
47571f588aSJohn Marino# The following variables are optional:
48571f588aSJohn Marino#     <CCVER>_CFLAGS     (extra CFLAGS)
49571f588aSJohn Marino#     <CCVER>_CXXFLAGS   (extra CXXFLAGS)
50571f588aSJohn Marino#     <CCVER>_CPPFLAGS   (extra CPPFLAGS)
510cbc2193SSascha Wildner#     <CCVER>_GCOV       (path to gcov, /usr/libexec/gcc80/gcov is default)
52571f588aSJohn Marino#
53571f588aSJohn Marino# The following commands call the base compilers by default:
54571f588aSJohn Marino#     gcc, g++, clang, clang++, clang-cpp
55571f588aSJohn Marino#
56571f588aSJohn Marino# However, these can be individually overridden:
57571f588aSJohn Marino#     <CCVER>_GCC        (path executed when /usr/bin/gcc called)
58571f588aSJohn Marino#     <CCVER>_GXX        (path executed when /usr/bin/g++ called)
59571f588aSJohn Marino#     <CCVER>_CLANG      (path executed when /usr/bin/clang called)
60571f588aSJohn Marino#     <CCVER>_CLANGCXX   (path executed when /usr/bin/clang++ called)
61571f588aSJohn Marino#     <CCVER>_CLANGCPP   (path executed when /usr/bin/clang-cpp called)
62571f588aSJohn Marino#
63571f588aSJohn Marino
64571f588aSJohn Marino
652fb215b1SSascha Wildner# devel/llvm10
662fb215b1SSascha Wildnerclang10_CC=/usr/local/bin/clang10
672fb215b1SSascha Wildnerclang10_CXX=/usr/local/bin/clang++10
682fb215b1SSascha Wildnerclang10_CPP=/usr/local/bin/clang-cpp10
692fb215b1SSascha Wildnerclang10_INCOPT="-nostdinc  -iprefix ${INCPREFIX} -iwithprefixbefore /usr/include -isystem /usr/local/llvm10/lib/clang/10.0.1/include"
702fb215b1SSascha Wildnerclang10_INCOPTCXX="${DPORT_CLANG_STD_INCOPTXX} -cxx-isystem /usr/include"
712fb215b1SSascha Wildnerclang10_CLANG=${clang10_CC}
722fb215b1SSascha Wildnerclang10_CLANGCXX=${clang10_CXX}
732fb215b1SSascha Wildnerclang10_CLANGCPP=${clang10_CPP}
74*5b01f675SSascha Wildner
75*5b01f675SSascha Wildner# devel/llvm11
76*5b01f675SSascha Wildnerclang11_CC=/usr/local/bin/clang11
77*5b01f675SSascha Wildnerclang11_CXX=/usr/local/bin/clang++11
78*5b01f675SSascha Wildnerclang11_CPP=/usr/local/bin/clang-cpp11
79*5b01f675SSascha Wildnerclang11_INCOPT="-nostdinc  -iprefix ${INCPREFIX} -iwithprefixbefore /usr/include -isystem /usr/local/llvm11/lib/clang/11.0.1/include"
80*5b01f675SSascha Wildnerclang11_INCOPTCXX="${DPORT_CLANG_STD_INCOPTXX} -cxx-isystem /usr/include"
81*5b01f675SSascha Wildnerclang11_CLANG=${clang11_CC}
82*5b01f675SSascha Wildnerclang11_CLANGCXX=${clang11_CXX}
83*5b01f675SSascha Wildnerclang11_CLANGCPP=${clang11_CPP}
84