Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
make: fix intree build
Baptiste Daroussin committed 1 year ago
commit f8892aa06f355701b8c548a9d05deabc67ff6b25
parent 5fc9047
2 files changed +5 -5
modified Makefile.autosetup
@@ -21,10 +21,7 @@ check: all
@if TESTS
all: Kyuafile

-
$(top_builddir)/UndefinedBehaviour.suppress: $(top_srcdir)/UndefinedBehaviour.suppress
-
	install -m 644 $< $@
-

-
check: $(top_builddir)/UndefinedBehaviour.suppress
+
check: UndefinedBehaviour.suppress
	export UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1:suppressions=$(top_builddir)/UndefinedBehaviour.suppress; \
	export LLVM_PROFILE_FILE=/tmp/pkg.%p.profraw; \
	if [ "$(HTML)" != "" ]; then \
modified mk/common.mk
@@ -15,7 +15,7 @@ CFLAGS+= -Werror=return-type
DEPFILES_NONEMPTY=	$(DEPFILES) /nonexistent
-include $(DEPFILES_NONEMPTY:=)

-
.SUFFIXES: .pico .in .bin .binin .so.1 .so.1in
+
.SUFFIXES: .pico .in .bin .binin .so.1 .so.1in .suppress.in .suppress

.c.o:
	$(CC) -Wall -Wextra -std=gnu11 -D_GNU_SOURCE=1 -MT $@ -MD -MP -MF $*.Tpo -o $@ -c $(CFLAGS) $(LOCAL_CFLAGS) $<
@@ -34,3 +34,6 @@ DEPFILES_NONEMPTY= $(DEPFILES) /nonexistent

.so.1in.so.1:
	cp $< $@
+

+
.suppress.in.suppress:
+
	cp $< $@