diff --git a/tests/Makefile b/tests/Makefile index 67f1a020..d33fb7c7 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -79,7 +79,11 @@ endif RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS) DISAS = objdump -d +ifdef CONFIG_OSX +DUMPTCC = (set -x; $(TOP)/tcc -vv; otool -L $(TOP)/tcc; exit 1) +else DUMPTCC = (set -x; $(TOP)/tcc -vv; ldd $(TOP)/tcc; exit 1) +endif all test : @$(MAKE) --no-print-directory -s clean