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.
14 // one identification macro for each of the
15 // compilers we support:
17 # define BOOST_CXX_GCCXML 0
18 # define BOOST_CXX_NVCC 0
19 # define BOOST_CXX_COMO 0
20 # define BOOST_CXX_PATHSCALE 0
21 # define BOOST_CXX_CLANG 0
22 # define BOOST_CXX_DMC 0
23 # define BOOST_CXX_INTEL 0
24 # define BOOST_CXX_GNUC 0
25 # define BOOST_CXX_KCC 0
26 # define BOOST_CXX_SGI 0
27 # define BOOST_CXX_TRU64 0
28 # define BOOST_CXX_GHS 0
29 # define BOOST_CXX_BORLAND 0
30 # define BOOST_CXX_CW 0
31 # define BOOST_CXX_SUNPRO 0
32 # define BOOST_CXX_HPACC 0
33 # define BOOST_CXX_MPW 0
34 # define BOOST_CXX_IBMCPP 0
35 # define BOOST_CXX_MSVC 0
36 # define BOOST_CXX_PGI 0
37 # define BOOST_CXX_NVCC 0
40 // locate which compiler we are using and define
41 // BOOST_COMPILER_CONFIG as needed:
43 #if defined(__GCCXML__)
44 // GCC-XML emulates other compilers, it has to appear first here!
45 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
47 #elif defined __CUDACC__
48 // NVIDIA CUDA C++ compiler for GPU
49 # define BOOST_COMPILER_CONFIG "boost/config/compiler/nvcc.hpp"
51 #elif defined __COMO__
53 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
55 #elif defined(__PATHSCALE__) && (__PATHCC__ >= 4)
56 // PathScale EKOPath compiler (has to come before clang and gcc)
57 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pathscale.hpp"
59 #elif defined __clang__
60 // Clang C++ emulates GCC, so it has to appear early.
61 # define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp"
65 # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
67 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
69 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
71 # elif defined __GNUC__
73 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
77 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
81 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
83 #elif defined __DECCXX
84 // Compaq Tru64 Unix cxx
85 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
89 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
91 #elif defined __CODEGEARC__
92 // CodeGear - must be checked for before Borland
93 # define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp"
95 #elif defined __BORLANDC__
97 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
99 #elif defined __MWERKS__
100 // Metrowerks CodeWarrior
101 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
103 #elif defined __SUNPRO_CC
104 // Sun Workshop Compiler C++
105 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
107 #elif defined __HP_aCC
109 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
111 #elif defined(__MRC__) || defined(__SC__)
113 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
115 #elif defined(__IBMCPP__)
117 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
120 // Portland Group Inc.
121 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp"
123 #elif defined _MSC_VER
124 // Microsoft Visual C++
126 // Must remain the last #elif since some other vendors (Metrowerks, for
127 // example) also #define _MSC_VER
128 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
130 #elif defined (BOOST_ASSERT_CONFIG)
131 // this must come last - generate an error if we don't
132 // recognise the compiler:
133 # 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)"