summaryrefslogtreecommitdiff
path: root/slice.jam
diff options
context:
space:
mode:
Diffstat (limited to 'slice.jam')
-rw-r--r--slice.jam11
1 files changed, 10 insertions, 1 deletions
diff --git a/slice.jam b/slice.jam
index 5534092..bc038c1 100644
--- a/slice.jam
+++ b/slice.jam
@@ -7,7 +7,7 @@ import toolset ;
type.register SLICE : ice ;
-feature slicer : no yes ;
+feature slicer : no yes pure ;
class slice-scanner : common-scanner
{
@@ -23,9 +23,11 @@ type.set-scanner SLICE : slice-scanner ;
generators.register-standard slice.slice2cpp : SLICE : CPP H : <slicer>no ;
generators.register-standard slice.slicer : SLICE : CPP H : <slicer>yes ;
+generators.register-standard slice.slicer.pure : SLICE : CPP : <slicer>pure ;
toolset.flags slice.slice2cpp INCLUDES <include> ;
toolset.flags slice.slicer INCLUDES <include> ;
+toolset.flags slice.slicer.pure INCLUDES <include> ;
actions slice.slice2cpp
{
@@ -38,6 +40,13 @@ actions slice.slicer
slicer -I"$(INCLUDES)" $(2) $(1[1])
}
+actions slice.slicer.pure
+{
+ truncate -c -s 0 $(1[1])
+ slicer -I"$(INCLUDES)" $(2) $(1[1])
+}
+
IMPORT $(__name__) : slice.slice2cpp : : slice.slice2cpp ;
IMPORT $(__name__) : slice.slicer : : slice.slicer ;
+IMPORT $(__name__) : slice.slicer.pure : : slice.slicer.pure ;