mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
We now have a C++ red-black tree implementation that implements standard template library compatible APIs while compiling 10x faster than libcxx. It's not as beautiful as the red-black tree implementation in Plinko but this will get the job done and the test proves it upholds all invariants This change also restores CheckForMemoryLeaks() support and fixes a real actual bug I discovered with Doug Lea's dlmalloc_inspect_all() function.
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
|
#── vi: set noet ft=make ts=8 sw=8 fenc=utf-8 :vi ────────────────────┘
|
|
|
|
PKGS += TEST_CTL
|
|
|
|
TEST_CTL_FILES := $(wildcard test/ctl/*)
|
|
TEST_CTL_SRCS = $(filter %.cc,$(TEST_CTL_FILES))
|
|
TEST_CTL_OBJS = $(TEST_CTL_SRCS:%.cc=o/$(MODE)/%.o)
|
|
TEST_CTL_COMS = $(TEST_CTL_OBJS:%.o=%)
|
|
TEST_CTL_BINS = $(TEST_CTL_COMS) $(TEST_CTL_COMS:%=%.dbg)
|
|
TEST_CTL_CHECKS = $(TEST_CTL_COMS:%=%.runs)
|
|
TEST_CTL_TESTS = $(TEST_CTL_COMS:%=%.ok)
|
|
|
|
TEST_CTL_DIRECTDEPS = \
|
|
CTL \
|
|
LIBC_INTRIN \
|
|
LIBC_MEM \
|
|
|
|
TEST_CTL_DEPS := \
|
|
$(call uniq,$(foreach x,$(TEST_CTL_DIRECTDEPS),$($(x))))
|
|
|
|
o/$(MODE)/test/ctl/ctl.pkg: \
|
|
$(TEST_CTL_OBJS) \
|
|
$(foreach x,$(TEST_CTL_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
o/$(MODE)/test/ctl/%.dbg: \
|
|
$(TEST_CTL_DEPS) \
|
|
o/$(MODE)/test/ctl/%.o \
|
|
o/$(MODE)/test/ctl/ctl.pkg \
|
|
$(CRT) \
|
|
$(APE_NO_MODIFY_SELF)
|
|
@$(APELINK)
|
|
|
|
.PHONY: o/$(MODE)/test/ctl
|
|
o/$(MODE)/test/ctl: \
|
|
$(TEST_CTL_BINS) \
|
|
$(TEST_CTL_CHECKS)
|