annotate DEPENDENCIES/generic/include/boost/config/select_compiler_config.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 // Boost compiler configuration selection header file
Chris@16 2
Chris@16 3 // (C) Copyright John Maddock 2001 - 2003.
Chris@16 4 // (C) Copyright Martin Wille 2003.
Chris@16 5 // (C) Copyright Guillaume Melquiond 2003.
Chris@16 6 //
Chris@16 7 // Distributed under the Boost Software License, Version 1.0.
Chris@16 8 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 9 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 10
Chris@16 11 // See http://www.boost.org/ for most recent version.
Chris@16 12
Chris@16 13 // locate which compiler we are using and define
Chris@16 14 // BOOST_COMPILER_CONFIG as needed:
Chris@16 15
Chris@16 16 #if defined __CUDACC__
Chris@16 17 // NVIDIA CUDA C++ compiler for GPU
Chris@16 18 # include "boost/config/compiler/nvcc.hpp"
Chris@16 19
Chris@16 20 #endif
Chris@16 21
Chris@16 22 #if defined(__GCCXML__)
Chris@16 23 // GCC-XML emulates other compilers, it has to appear first here!
Chris@16 24 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
Chris@16 25
Chris@16 26 #elif defined(_CRAYC)
Chris@16 27 // EDG based Cray compiler:
Chris@16 28 # define BOOST_COMPILER_CONFIG "boost/config/compiler/cray.hpp"
Chris@16 29
Chris@16 30 #elif defined __COMO__
Chris@16 31 // Comeau C++
Chris@16 32 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
Chris@16 33
Chris@16 34 #elif defined(__PATHSCALE__) && (__PATHCC__ >= 4)
Chris@16 35 // PathScale EKOPath compiler (has to come before clang and gcc)
Chris@16 36 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pathscale.hpp"
Chris@16 37
Chris@16 38 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
Chris@16 39 // Intel
Chris@16 40 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
Chris@16 41
Chris@101 42 #elif defined __clang__ && !defined(__CUDACC__)
Chris@101 43 // when using clang and cuda at same time, you want to appear as gcc
Chris@16 44 // Clang C++ emulates GCC, so it has to appear early.
Chris@16 45 # define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp"
Chris@16 46
Chris@16 47 #elif defined __DMC__
Chris@16 48 // Digital Mars C++
Chris@16 49 # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
Chris@16 50
Chris@16 51 # elif defined __GNUC__
Chris@16 52 // GNU C++:
Chris@16 53 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
Chris@16 54
Chris@16 55 #elif defined __KCC
Chris@16 56 // Kai C++
Chris@16 57 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
Chris@16 58
Chris@16 59 #elif defined __sgi
Chris@16 60 // SGI MIPSpro C++
Chris@16 61 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
Chris@16 62
Chris@16 63 #elif defined __DECCXX
Chris@16 64 // Compaq Tru64 Unix cxx
Chris@16 65 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
Chris@16 66
Chris@16 67 #elif defined __ghs
Chris@16 68 // Greenhills C++
Chris@16 69 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
Chris@16 70
Chris@16 71 #elif defined __CODEGEARC__
Chris@16 72 // CodeGear - must be checked for before Borland
Chris@16 73 # define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp"
Chris@16 74
Chris@16 75 #elif defined __BORLANDC__
Chris@16 76 // Borland
Chris@16 77 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
Chris@16 78
Chris@16 79 #elif defined __MWERKS__
Chris@16 80 // Metrowerks CodeWarrior
Chris@16 81 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
Chris@16 82
Chris@16 83 #elif defined __SUNPRO_CC
Chris@16 84 // Sun Workshop Compiler C++
Chris@16 85 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
Chris@16 86
Chris@16 87 #elif defined __HP_aCC
Chris@16 88 // HP aCC
Chris@16 89 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
Chris@16 90
Chris@16 91 #elif defined(__MRC__) || defined(__SC__)
Chris@16 92 // MPW MrCpp or SCpp
Chris@16 93 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
Chris@16 94
Chris@16 95 #elif defined(__IBMCPP__)
Chris@16 96 // IBM Visual Age
Chris@16 97 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
Chris@16 98
Chris@16 99 #elif defined(__PGI)
Chris@16 100 // Portland Group Inc.
Chris@16 101 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp"
Chris@16 102
Chris@16 103 #elif defined _MSC_VER
Chris@16 104 // Microsoft Visual C++
Chris@16 105 //
Chris@16 106 // Must remain the last #elif since some other vendors (Metrowerks, for
Chris@16 107 // example) also #define _MSC_VER
Chris@16 108 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
Chris@16 109
Chris@16 110 #elif defined (BOOST_ASSERT_CONFIG)
Chris@16 111 // this must come last - generate an error if we don't
Chris@16 112 // recognise the compiler:
Chris@16 113 # 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)"
Chris@16 114
Chris@16 115 #endif
Chris@101 116
Chris@101 117 #if 0
Chris@101 118 //
Chris@101 119 // This section allows dependency scanners to find all the headers we *might* include:
Chris@101 120 //
Chris@101 121 #include "boost/config/compiler/gcc_xml.hpp"
Chris@101 122 #include "boost/config/compiler/cray.hpp"
Chris@101 123 #include "boost/config/compiler/comeau.hpp"
Chris@101 124 #include "boost/config/compiler/pathscale.hpp"
Chris@101 125 #include "boost/config/compiler/intel.hpp"
Chris@101 126 #include "boost/config/compiler/clang.hpp"
Chris@101 127 #include "boost/config/compiler/digitalmars.hpp"
Chris@101 128 #include "boost/config/compiler/gcc.hpp"
Chris@101 129 #include "boost/config/compiler/kai.hpp"
Chris@101 130 #include "boost/config/compiler/sgi_mipspro.hpp"
Chris@101 131 #include "boost/config/compiler/compaq_cxx.hpp"
Chris@101 132 #include "boost/config/compiler/greenhills.hpp"
Chris@101 133 #include "boost/config/compiler/codegear.hpp"
Chris@101 134 #include "boost/config/compiler/borland.hpp"
Chris@101 135 #include "boost/config/compiler/metrowerks.hpp"
Chris@101 136 #include "boost/config/compiler/sunpro_cc.hpp"
Chris@101 137 #include "boost/config/compiler/hp_acc.hpp"
Chris@101 138 #include "boost/config/compiler/mpw.hpp"
Chris@101 139 #include "boost/config/compiler/vacpp.hpp"
Chris@101 140 #include "boost/config/compiler/pgi.hpp"
Chris@101 141 #include "boost/config/compiler/visualc.hpp"
Chris@101 142
Chris@101 143 #endif
Chris@101 144