change makefile to be more helpful for "seletc-startup.rkt" failure

This commit is contained in:
Matthew Flatt 2018-02-28 06:56:16 -07:00
parent e4296f5c1e
commit 4eacbbd296
2 changed files with 7 additions and 3 deletions

View File

@ -319,7 +319,7 @@ headers:
# of the the other targets is selected by a recursive `$(MAKE)`.
cstartup@STARTUP_AS_AUTO@:
$(MAKE) `@RUN_RACKET_CGC@ -cu $(srcdir)/src/startup-select.rkt`
$(MAKE) cstartup_`@RUN_RACKET_CGC@ -cu $(srcdir)/src/startup-select.rkt`
# For compiling the startup code to bytecode
cstartup@STARTUP_AS_BYTECODE@:
@ -330,6 +330,10 @@ cstartup@STARTUP_AS_C@:
@RUN_RACKET_CGC@ -cu $(srcdir)/src/cify-check.rkt $(CSTARTUPDEST)
$(MAKE) cstartup.inc
cstartup_:
echo "Bad startup choice, probably an error running startup-select.rkt"
exit 1
# Running "cify-startup.rkt" through "$(SETUP_BOOT)" generates more
# dependencies in "cstartup.d" for `$(CSTARTUPDEST)`
$(CSTARTUPDEST): $(srcdir)/src/startup.inc $(srcdir)/src/schvers.h

View File

@ -1,6 +1,6 @@
(module startup-select '#%kernel
(if (eval-jit-enabled)
(display "cstartup_bytecode")
(display "cstartup_c"))
(display "bytecode")
(display "c"))
(newline))