1 // Boost compiler configuration selection header file
3 // (C) Copyright John Maddock 2001 - 2003.
4 // (C) Copyright Martin Wille 2003.
5 // (C) Copyright Guillaume Melquiond 2003.
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
11 // See http://www.boost.org/ for most recent version.
13 // locate which compiler we are using and define
14 // BOOST_COMPILER_CONFIG as needed:
16 #if defined __CUDACC__
17 // NVIDIA CUDA C++ compiler for GPU
18 # include "boost/config/compiler/nvcc.hpp"
22 #if defined(__GCCXML__)
23 // GCC-XML emulates other compilers, it has to appear first here!
24 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
27 // EDG based Cray compiler:
28 # define BOOST_COMPILER_CONFIG "boost/config/compiler/cray.hpp"
30 #elif defined __COMO__
32 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
34 #elif defined(__PATHSCALE__) && (__PATHCC__ >= 4)
35 // PathScale EKOPath compiler (has to come before clang and gcc)
36 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pathscale.hpp"
38 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
40 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
42 #elif defined __clang__ && !defined(__CUDACC__) && !defined(__ibmxl__)
43 // when using clang and cuda at same time, you want to appear as gcc
44 // Clang C++ emulates GCC, so it has to appear early.
45 # define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp"
49 # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
52 // Wind River Diab C++
53 # define BOOST_COMPILER_CONFIG "boost/config/compiler/diab.hpp"
56 // Portland Group Inc.
57 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp"
59 # elif defined(__GNUC__) && !defined(__ibmxl__)
61 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
65 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
69 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
71 #elif defined __DECCXX
72 // Compaq Tru64 Unix cxx
73 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
77 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
79 #elif defined __CODEGEARC__
80 // CodeGear - must be checked for before Borland
81 # define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp"
83 #elif defined __BORLANDC__
85 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
87 #elif defined __MWERKS__
88 // Metrowerks CodeWarrior
89 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
91 #elif defined __SUNPRO_CC
92 // Sun Workshop Compiler C++
93 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
95 #elif defined __HP_aCC
97 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
99 #elif defined(__MRC__) || defined(__SC__)
101 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
103 #elif defined(__IBMCPP__) && defined(__COMPILER_VER__) && defined(__MVS__)
105 # define BOOST_COMPILER_CONFIG "boost/config/compiler/xlcpp_zos.hpp"
107 #elif defined(__ibmxl__)
108 // IBM XL C/C++ for Linux (Little Endian)
109 # define BOOST_COMPILER_CONFIG "boost/config/compiler/xlcpp.hpp"
111 #elif defined(__IBMCPP__)
112 // IBM Visual Age or IBM XL C/C++ for Linux (Big Endian)
113 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
115 #elif defined _MSC_VER
116 // Microsoft Visual C++
118 // Must remain the last #elif since some other vendors (Metrowerks, for
119 // example) also #define _MSC_VER
120 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
122 #elif defined (BOOST_ASSERT_CONFIG)
123 // this must come last - generate an error if we don't
124 // recognise the compiler:
125 # error "Unknown compiler - please configure (http://www.boost.org/libs/config/config.htm#configuring) and report the results to the main boost mailing list (http://www.boost.org/more/mailing_lists.htm#main)"
131 // This section allows dependency scanners to find all the headers we *might* include:
133 #include <boost/config/compiler/gcc_xml.hpp>
134 #include <boost/config/compiler/cray.hpp>
135 #include <boost/config/compiler/comeau.hpp>
136 #include <boost/config/compiler/pathscale.hpp>
137 #include <boost/config/compiler/intel.hpp>
138 #include <boost/config/compiler/clang.hpp>
139 #include <boost/config/compiler/digitalmars.hpp>
140 #include <boost/config/compiler/gcc.hpp>
141 #include <boost/config/compiler/kai.hpp>
142 #include <boost/config/compiler/sgi_mipspro.hpp>
143 #include <boost/config/compiler/compaq_cxx.hpp>
144 #include <boost/config/compiler/greenhills.hpp>
145 #include <boost/config/compiler/codegear.hpp>
146 #include <boost/config/compiler/borland.hpp>
147 #include <boost/config/compiler/metrowerks.hpp>
148 #include <boost/config/compiler/sunpro_cc.hpp>
149 #include <boost/config/compiler/hp_acc.hpp>
150 #include <boost/config/compiler/mpw.hpp>
151 #include <boost/config/compiler/xlcpp_zos.hpp>
152 #include <boost/config/compiler/xlcpp.hpp>
153 #include <boost/config/compiler/vacpp.hpp>
154 #include <boost/config/compiler/pgi.hpp>
155 #include <boost/config/compiler/visualc.hpp>