summaryrefslogtreecommitdiff
path: root/slice.jam
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-10-07 10:01:31 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-10-07 10:01:31 +0100
commit52687a8456a10e4f057acc7050f511ed9054e444 (patch)
treeb64b75a4ac1320a6a200716a71078286ae3c73b1 /slice.jam
parentAdd basics of user service (diff)
downloadgentoobrowse-api-52687a8456a10e4f057acc7050f511ed9054e444.tar.bz2
gentoobrowse-api-52687a8456a10e4f057acc7050f511ed9054e444.tar.xz
gentoobrowse-api-52687a8456a10e4f057acc7050f511ed9054e444.zip
Behave more like a normal compiler (write whole file, not append existing one)
Diffstat (limited to 'slice.jam')
-rw-r--r--slice.jam7
1 files changed, 3 insertions, 4 deletions
diff --git a/slice.jam b/slice.jam
index 0ea52ba..434e562 100644
--- a/slice.jam
+++ b/slice.jam
@@ -24,8 +24,8 @@ scanner.register slice-scanner : include ;
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 ;
+generators.register-standard slice.slicer : SLICE : CPP CPP(slicer-%) H : <slicer>yes ;
+generators.register-standard slice.slicer.pure : SLICE : CPP(slicer-%) : <slicer>pure ;
toolset.flags slice.slice2cpp INCLUDES <include> ;
toolset.flags slice.slice2cpp DLLEXPORT <ice-visibility>public : --dll-export JAM_DLL_PUBLIC ;
@@ -44,12 +44,11 @@ actions slice.slice2cpp
actions slice.slicer
{
slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) $(DLLEXPORT) $(ALLOWICE[1])
- slicer -I"$(INCLUDES)" $(2) $(1[1]) $(ALLOWICE[1])
+ slicer -I"$(INCLUDES)" $(2) $(1[2]) $(ALLOWICE[1])
}
actions slice.slicer.pure
{
- truncate -c -s 0 $(1[1])
slicer -I"$(INCLUDES)" $(2) $(1[1]) $(ALLOWICE[1])
}