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)
|
#~ (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
import testing ;
|
import testing ;
|
||||||
|
import cast ;
|
||||||
|
|
||||||
project preprocessor_tests : requirements <warnings>on
|
project preprocessor_tests : requirements <warnings>on
|
||||||
<toolset>gcc-4.3.0:<warnings>all
|
<toolset>gcc-4.3.0:<warnings>all
|
||||||
@ -250,10 +251,10 @@ alias preprocessor_config
|
|||||||
|
|
||||||
alias test_clang_cuda
|
alias test_clang_cuda
|
||||||
:
|
:
|
||||||
[ compile clang_cuda.cu
|
[ compile [ cast _ cpp : clang_cuda.cu ]
|
||||||
: <cxxflags>--cuda-gpu-arch=sm_20
|
: <cxxflags>-nocudalib
|
||||||
<cxxflags>-nocudalib
|
<cxxflags>-nocudainc
|
||||||
<cxxflags>--no-cuda-version-check
|
<cxxflags>"-x cuda"
|
||||||
: clang_cuda_cu
|
: clang_cuda_cu
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user