Boost logo

Boost-Build :

From: Edward Diener (eldiener_at_[hidden])
Date: 2019-10-01 17:49:37


I just want to use the 'compile' rule to compile a CUDA file, meaning a
file ending in .cu, to an object file in a .jam file. In all other
respects the CUDA file should be treated like a normal .cpp file being
compiled with the 'compile' rule. Is there some way to specify this in a
jam file ?

My current attempt generates:

somepath/boost/tools/build/src/build/generators.jam:1127: in ensure-type
from module generators
error: target { clang_cuda.cu. } has no type
etc.

What do I have to do to tell Boost Build that the .cu type should be
treated just like .cpp type for my 'compile' test ?


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk