Add -y when calling into racket

This makes the racket compiler check for new versions of modules it
already compiled. Should avoid some confusing errors when developing the
racket libs.
This commit is contained in:
Dan Doel 2023-08-14 16:42:41 -04:00
parent 8a88523f63
commit 490e23856f

View File

@ -2651,7 +2651,7 @@ ensureSchemeExists =
(ExitFailure _, _, _) -> pure False
racketOpts :: FilePath -> FilePath -> [String] -> [String]
racketOpts gendir statdir args = libs ++ args
racketOpts gendir statdir args = "-y" : libs ++ args
where
includes = [gendir, statdir </> "racket"]
libs = concatMap (\dir -> ["-S", dir]) includes