From 17baf583d925300f204c164eeb1e4f446a961cac Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 7 Oct 2016 10:01:31 +0100 Subject: Behave more like a normal compiler (write whole file, not append existing one) --- slice.jam | 7 +++---- 1 file 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 : no ; -generators.register-standard slice.slicer : SLICE : CPP H : yes ; -generators.register-standard slice.slicer.pure : SLICE : CPP : pure ; +generators.register-standard slice.slicer : SLICE : CPP CPP(slicer-%) H : yes ; +generators.register-standard slice.slicer.pure : SLICE : CPP(slicer-%) : pure ; toolset.flags slice.slice2cpp INCLUDES ; toolset.flags slice.slice2cpp DLLEXPORT 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]) } -- cgit v1.2.3