Chris@16: // Boost compiler configuration selection header file Chris@16: Chris@16: // (C) Copyright John Maddock 2001 - 2003. Chris@16: // (C) Copyright Martin Wille 2003. Chris@16: // (C) Copyright Guillaume Melquiond 2003. Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. Chris@16: // (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org/ for most recent version. Chris@16: Chris@16: // locate which compiler we are using and define Chris@16: // BOOST_COMPILER_CONFIG as needed: Chris@16: Chris@16: #if defined __CUDACC__ Chris@16: // NVIDIA CUDA C++ compiler for GPU Chris@16: # include "boost/config/compiler/nvcc.hpp" Chris@16: Chris@16: #endif Chris@16: Chris@16: #if defined(__GCCXML__) Chris@16: // GCC-XML emulates other compilers, it has to appear first here! Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp" Chris@16: Chris@16: #elif defined(_CRAYC) Chris@16: // EDG based Cray compiler: Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/cray.hpp" Chris@16: Chris@16: #elif defined __COMO__ Chris@16: // Comeau C++ Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp" Chris@16: Chris@16: #elif defined(__PATHSCALE__) && (__PATHCC__ >= 4) Chris@16: // PathScale EKOPath compiler (has to come before clang and gcc) Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/pathscale.hpp" Chris@16: Chris@16: #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC) Chris@16: // Intel Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp" Chris@16: Chris@101: #elif defined __clang__ && !defined(__CUDACC__) Chris@101: // when using clang and cuda at same time, you want to appear as gcc Chris@16: // Clang C++ emulates GCC, so it has to appear early. Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp" Chris@16: Chris@16: #elif defined __DMC__ Chris@16: // Digital Mars C++ Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp" Chris@16: Chris@16: # elif defined __GNUC__ Chris@16: // GNU C++: Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp" Chris@16: Chris@16: #elif defined __KCC Chris@16: // Kai C++ Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp" Chris@16: Chris@16: #elif defined __sgi Chris@16: // SGI MIPSpro C++ Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp" Chris@16: Chris@16: #elif defined __DECCXX Chris@16: // Compaq Tru64 Unix cxx Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp" Chris@16: Chris@16: #elif defined __ghs Chris@16: // Greenhills C++ Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp" Chris@16: Chris@16: #elif defined __CODEGEARC__ Chris@16: // CodeGear - must be checked for before Borland Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp" Chris@16: Chris@16: #elif defined __BORLANDC__ Chris@16: // Borland Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp" Chris@16: Chris@16: #elif defined __MWERKS__ Chris@16: // Metrowerks CodeWarrior Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp" Chris@16: Chris@16: #elif defined __SUNPRO_CC Chris@16: // Sun Workshop Compiler C++ Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp" Chris@16: Chris@16: #elif defined __HP_aCC Chris@16: // HP aCC Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp" Chris@16: Chris@16: #elif defined(__MRC__) || defined(__SC__) Chris@16: // MPW MrCpp or SCpp Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp" Chris@16: Chris@16: #elif defined(__IBMCPP__) Chris@16: // IBM Visual Age Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp" Chris@16: Chris@16: #elif defined(__PGI) Chris@16: // Portland Group Inc. Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp" Chris@16: Chris@16: #elif defined _MSC_VER Chris@16: // Microsoft Visual C++ Chris@16: // Chris@16: // Must remain the last #elif since some other vendors (Metrowerks, for Chris@16: // example) also #define _MSC_VER Chris@16: # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp" Chris@16: Chris@16: #elif defined (BOOST_ASSERT_CONFIG) Chris@16: // this must come last - generate an error if we don't Chris@16: // recognise the compiler: Chris@16: # 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: Chris@16: #endif Chris@101: Chris@101: #if 0 Chris@101: // Chris@101: // This section allows dependency scanners to find all the headers we *might* include: Chris@101: // Chris@101: #include "boost/config/compiler/gcc_xml.hpp" Chris@101: #include "boost/config/compiler/cray.hpp" Chris@101: #include "boost/config/compiler/comeau.hpp" Chris@101: #include "boost/config/compiler/pathscale.hpp" Chris@101: #include "boost/config/compiler/intel.hpp" Chris@101: #include "boost/config/compiler/clang.hpp" Chris@101: #include "boost/config/compiler/digitalmars.hpp" Chris@101: #include "boost/config/compiler/gcc.hpp" Chris@101: #include "boost/config/compiler/kai.hpp" Chris@101: #include "boost/config/compiler/sgi_mipspro.hpp" Chris@101: #include "boost/config/compiler/compaq_cxx.hpp" Chris@101: #include "boost/config/compiler/greenhills.hpp" Chris@101: #include "boost/config/compiler/codegear.hpp" Chris@101: #include "boost/config/compiler/borland.hpp" Chris@101: #include "boost/config/compiler/metrowerks.hpp" Chris@101: #include "boost/config/compiler/sunpro_cc.hpp" Chris@101: #include "boost/config/compiler/hp_acc.hpp" Chris@101: #include "boost/config/compiler/mpw.hpp" Chris@101: #include "boost/config/compiler/vacpp.hpp" Chris@101: #include "boost/config/compiler/pgi.hpp" Chris@101: #include "boost/config/compiler/visualc.hpp" Chris@101: Chris@101: #endif Chris@101: