diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2024-06-30 18:42:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2024-06-30 18:42:55 -0700 |
commit | 607a0badb2fe7251c9d394d27d770a77c16dc3f2 (patch) | |
tree | badc244534dfb2cc8b070de19553c564d5c607fb | |
parent | 7541ec5f6c4c7c8a2a21b05cd7f4ecc101b8a816 (diff) | |
download | txr-607a0badb2fe7251c9d394d27d770a77c16dc3f2.tar.gz txr-607a0badb2fe7251c9d394d27d770a77c16dc3f2.tar.bz2 txr-607a0badb2fe7251c9d394d27d770a77c16dc3f2.zip |
build: split tlos into three groups rather than two.
It seems that there are several more .tlo files that we should
compile earlier for a better build time.
* Makefile (STDLIB_MIDDLE_TLOS): New variable. We include
error.tlo in here because a new circular dependency has been
revealed involving usr:catch.
(STDLIB_LATE_TLOS): Also exclude STDLIB_MIDDLE_TLOS.
(all): Depend on STDLIB_MIDDLE_TLOS between the early and late
ones.
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -74,7 +74,9 @@ STDLIB_TLOS := $(patsubst %.tl,%.tlo,$(STDLIB_SRCS)) STDLIB_EARLY_TLOS := $(addprefix stdlib/,optimize.tlo param.tlo \ compiler.tlo place.tlo asm.tlo) -STDLIB_LATE_TLOS := $(filter-out $(STDLIB_EARLY_TLOS),$(STDLIB_TLOS)) +STDLIB_MIDDLE_TLOS := $(addprefix stdlib/,build.tlo op.tlo struct.tlo error.tlo) +STDLIB_LATE_TLOS := $(filter-out $(STDLIB_EARLY_TLOS),$(STDLIB_TLOS) \ + $(STDLIB_MIDDLE_TLOS)) ifneq ($(have_git),) SRCS := $(addprefix $(top_srcdir),\ @@ -217,7 +219,8 @@ endif .PHONY: all -all: $(BUILD_TARGETS) $(STDLIB_EARLY_TLOS) $(STDLIB_LATE_TLOS) +all: $(BUILD_TARGETS) $(STDLIB_EARLY_TLOS) $(STDLIB_MIDDLE_TLOS) \ + $(STDLIB_LATE_TLOS) $(PROG): $(OPT_OBJS) $(EXTRA_OBJS-y) $(call LINK_PROG,$(OPT_FLAGS)) |