Merge branch 'vendor/TCSH'
[dragonfly.git] / etc / defaults / compilers.conf
1 #
2 # Copyright (c) 2014 The DragonFly Project.  All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
6 # are met:
7 #
8 # 1. Redistributions of source code must retain the above copyright
9 #    notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 #    notice, this list of conditions and the following disclaimer in
12 #    the documentation and/or other materials provided with the
13 #    distribution.
14 # 3. Neither the name of The DragonFly Project nor the names of its
15 #    contributors may be used to endorse or promote products derived
16 #    from this software without specific, prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
22 # COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23 # INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
24 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26 # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
28 # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 # SUCH DAMAGE.
30 #
31
32
33 STD_INCOPT="-nostdinc -iprefix ${INCPREFIX} -iwithprefixbefore /usr/include"
34 DPORT_GCC_STD_INCOPTXX="-isystem /usr/local/lib/${CCVER}/include/c++ \
35         -isystem /usr/local/lib/${CCVER}/include/c++/${MACHARCH}-portbld-dragonfly${MACHREL}"
36 DPORT_CLANG_STD_INCOPTXX="-cxx-isystem /usr/include/c++/8.0"
37
38
39 # For each custom compiler definition, it is mandatory to define the
40 # following variables:
41 #     <CCVER>_CC         (path to C compiler)
42 #     <CCVER>_CXX        (path to C++ compiler)
43 #     <CCVER>_CPP        (path to pre-processor)
44 #     <CCVER>_INCOPT     (include options for cc, c++ and cpp)
45 #     <CCVER>_INCOPTCXX  (extra include options for c++)
46 #
47 # The following variables are optional:
48 #     <CCVER>_CFLAGS     (extra CFLAGS)
49 #     <CCVER>_CXXFLAGS   (extra CXXFLAGS)
50 #     <CCVER>_CPPFLAGS   (extra CPPFLAGS)
51 #     <CCVER>_GCOV       (path to gcov, /usr/libexec/gcc80/gcov is default)
52 #
53 # The following commands call the base compilers by default:
54 #     gcc, g++, clang, clang++, clang-cpp
55 #
56 # However, these can be individually overridden:
57 #     <CCVER>_GCC        (path executed when /usr/bin/gcc called)
58 #     <CCVER>_GXX        (path executed when /usr/bin/g++ called)
59 #     <CCVER>_CLANG      (path executed when /usr/bin/clang called)
60 #     <CCVER>_CLANGCXX   (path executed when /usr/bin/clang++ called)
61 #     <CCVER>_CLANGCPP   (path executed when /usr/bin/clang-cpp called)
62 #
63
64
65 # devel/llvm10
66 clang10_CC=/usr/local/bin/clang10
67 clang10_CXX=/usr/local/bin/clang++10
68 clang10_CPP=/usr/local/bin/clang-cpp10
69 clang10_INCOPT="-nostdinc  -iprefix ${INCPREFIX} -iwithprefixbefore /usr/include -isystem /usr/local/llvm10/lib/clang/10.0.1/include"
70 clang10_INCOPTCXX="${DPORT_CLANG_STD_INCOPTXX} -cxx-isystem /usr/include"
71 clang10_CLANG=${clang10_CC}
72 clang10_CLANGCXX=${clang10_CXX}
73 clang10_CLANGCPP=${clang10_CPP}