From 886962aa439c308ccedf8d7f8c14c93d02d8f898 Mon Sep 17 00:00:00 2001 From: Edwin Brady Date: Sat, 10 Jul 2021 23:55:45 +0100 Subject: [PATCH] Need --script for incrementally compiled apps Otherwise it doesn't load the compiled modules and can't find the compiled definitions! --- src/Compiler/Scheme/Chez.idr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Compiler/Scheme/Chez.idr b/src/Compiler/Scheme/Chez.idr index eed25416f..3a1b6b7bb 100644 --- a/src/Compiler/Scheme/Chez.idr +++ b/src/Compiler/Scheme/Chez.idr @@ -85,7 +85,9 @@ findLibs ds schHeader : String -> List String -> Bool -> String schHeader chez libs whole - = (if os /= "windows" then "#!" ++ chez ++ " --program\n\n" else "") ++ + = (if os /= "windows" + then "#!" ++ chez ++ (if whole then " --program\n\n" else " --script\n\n") + else "") ++ "; " ++ (generatedString "Chez") ++ "\n" ++ "(import (chezscheme))\n" ++ "(case (machine-type)\n" ++