forked from boostorg/preprocessor
Updated for compiling a CUDA file with clang.
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
#~ (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
import testing ;
|
||||
import cast ;
|
||||
|
||||
project preprocessor_tests : requirements <warnings>on
|
||||
<toolset>gcc-4.3.0:<warnings>all
|
||||
@ -250,10 +251,10 @@ alias preprocessor_config
|
||||
|
||||
alias test_clang_cuda
|
||||
:
|
||||
[ compile clang_cuda.cu
|
||||
: <cxxflags>--cuda-gpu-arch=sm_20
|
||||
<cxxflags>-nocudalib
|
||||
<cxxflags>--no-cuda-version-check
|
||||
[ compile [ cast _ cpp : clang_cuda.cu ]
|
||||
: <cxxflags>-nocudalib
|
||||
<cxxflags>-nocudainc
|
||||
<cxxflags>"-x cuda"
|
||||
: clang_cuda_cu
|
||||
]
|
||||
;
|
||||
|
Reference in New Issue
Block a user