aboutsummaryrefslogtreecommitdiff
path: root/src/interp/lisplib.boot
diff options
context:
space:
mode:
Diffstat (limited to 'src/interp/lisplib.boot')
-rw-r--r--src/interp/lisplib.boot6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/interp/lisplib.boot b/src/interp/lisplib.boot
index 3ad3bc9b..97211017 100644
--- a/src/interp/lisplib.boot
+++ b/src/interp/lisplib.boot
@@ -418,7 +418,11 @@ compDefineLisplib(db,df:=["DEF",[op,:.],:.],m,e,fal,fn) ==
leaveIfErrors(libName,dbConstructorKind db)
sayMSG ['" finalizing ",$spadLibFT,:bright libName]
finalizeLisplib(db,libName)
- RECOMPILE_-LIB_-FILE_-IF_-NECESSARY filePath libCodeStream lib
+ RECOMPILE_-LIB_-FILE_-IF_-NECESSARY
+ -- Let's close the code stream before handing over to the backend
+ st := libCodeStream lib
+ closeStream st
+ filePath st
finally
RSHUT dbLibstream db
lisplibDoRename db