1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-21 09:57:18 +03:00
mold/test/Makefile.darwin
2021-09-28 18:47:24 +09:00

16 lines
445 B
Makefile

TESTS = $(wildcard macho/*.sh)
test: $(TESTS)
# macOS's GNU make hasn't been updated since 3.8.1 perhaps due a concern
# of GPLv3. The --output-sync flag was introduced in GNU Make 4.0, so we
# can't use that flag on macOS.
#
# `tail -r | tail -r` is a poor-man's way to enable full buffering on a
# command output. `tail -r` outputs an input from the last line to the
# first.
$(TESTS):
@./$@ 2>&1 | tail -r | tail -r
.PHONY: test $(TESTS)