summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b2815e9c..66298ddb 100644
--- a/Makefile
+++ b/Makefile
@@ -67,6 +67,10 @@ STDLIB_SRCS := $(wildcard share/txr/stdlib/*.tl)
STDLIB_TLOS := $(patsubst %.tl,%.tlo,$(STDLIB_SRCS))
STDLIB_TLOS2 := $(patsubst %.tl,%.tlo2,$(STDLIB_SRCS))
+STDLIB_EARLY_PATS := %/error.tlo # these must be compiled first
+STDLIB_EARLY_TLOS := $(filter $(STDLIB_EARLY_PATS),$(STDLIB_TLOS))
+STDLIB_LATE_TLOS := $(filter-out $(STDLIB_EARLY_TLOS),$(STDLIB_TLOS))
+
ifneq ($(have_git),)
SRCS := $(addprefix $(top_srcdir),\
$(filter-out lex.yy.c y.tab.c y.tab.h,\
@@ -219,6 +223,8 @@ endif
all: $(BUILD_TARGETS) stage1 stage2
+$(STDLIB_LATE_TLOS): $(STDLIB_EARLY_TLOS)
+
stage1: $(STDLIB_TLOS)
stage2: $(STDLIB_TLOS2)