cs: fix build-time arity check

Bootstrap properly to avoid problems on updates and version changes.
This commit is contained in:
Matthew Flatt 2019-11-26 08:09:38 -07:00
parent afff5ca7ac
commit 79981af50b
2 changed files with 4 additions and 1 deletions

View File

@ -470,8 +470,10 @@ macos-install-gracket:
# ----------------------------------------
# Check
CHECK_BOOT = -O 'info@compiler/cm' -l- setup --boot $(srcdir)/../../setup-go.rkt $(builddir)/compiled/cs ignored $(builddir)/ignored.d
check-racketcs:
./racketcs $(srcdir)/../known.rkt $(srcdir)/..
./racketcs $(CHECK_BOOT) $(srcdir)/../known.rkt $(srcdir)/..
# ----------------------------------------
# Reconfigure

View File

@ -68,6 +68,7 @@
(command-line
#:args (dir)
(printf "Checking primitive arity information\n")
(parameterize ([current-directory dir])
(define prim-knowns (get-prim-knowns))
(define primitives (get-primitives))