From ab45a2c7e6a71ddc0c5d0c89cf9029c8223546bb Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 15 Aug 2014 18:17:38 +0100 Subject: [PATCH] This is from: https://github.com/boostorg/config/pull/31/files See also: https://svn.boost.org/trac/boost/ticket/8647 --- include/boost/config/select_compiler_config.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/config/select_compiler_config.hpp b/include/boost/config/select_compiler_config.hpp index 62053ba0..3d8bdd87 100644 --- a/include/boost/config/select_compiler_config.hpp +++ b/include/boost/config/select_compiler_config.hpp @@ -39,7 +39,8 @@ // Intel # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp" -#elif defined __clang__ +#elif defined __clang__ && !defined(__CUDACC__) +// when using clang and cuda at same time, you want to appear as gcc // Clang C++ emulates GCC, so it has to appear early. # define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp"