|
Boost-Build : |
Subject: [Boost-build] Trying to use a 1:1 generator
From: John Maddock (jz.maddock_at_[hidden])
Date: 2016-02-07 13:56:13
I'm trying to follow the 1:1 generator example to build .cu files with
nvcc but can't get it to work, here's what I have so far:
import os ;
import type ;
type.register CU : cu ;
import generators ;
generators.register-standard cu.inline-file : CU : OBJ ;
#rule cuda { }
actions inline-file
{
nvcc -c -I../../../.. $(<) $(>)
}
run erf_double.cu ;
But I get:
M:/data/boost/boost/tools/build/src/kernel\modules.jam:107: in
modules.call-in
ERROR: rule "cu.inline-file" unknown in module "cu".
M:/data/boost/boost/tools/build/src/util\indirect.jam:98: in indirect.call
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:798: in
class_at_action.actualize
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:311: in
actualize-action
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:497: in
actualize-no-scanner
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:134: in
class_at_virtual-target.actualize
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:819: in
actualize-source-type
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:840: in
actualize-sources
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:780: in
class_at_action.actualize
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:311: in
actualize-action
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:497: in
actualize-no-scanner
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:134: in
class_at_virtual-target.actualize
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:819: in
actualize-source-type
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:840: in
actualize-sources
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:780: in
class_at_action.actualize
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:311: in
actualize-action
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:497: in
actualize-no-scanner
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:134: in
class_at_virtual-target.actualize
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:819: in
actualize-source-type
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:840: in
actualize-sources
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:780: in
class_at_action.actualize
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:311: in
actualize-action
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:497: in
actualize-no-scanner
M:/data/boost/boost/tools/build/src/build\virtual-target.jam:134: in
class_at_virtual-target.actualize
M:/data/boost/boost/tools/build/src\build-system.jam:727: in load
M:\data\boost\boost\tools\build\src/kernel\modules.jam:295: in import
M:\data\boost\boost\tools\build\src/kernel/bootstrap.jam:139: in boost-build
M:\data\boost\boost\boost-build.jam:17: in module scope
What am I doing wrong?
Thanks! John.
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