select_compiler_config.hpp 5.2 KB

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