From 1ea425811a73ab0bf91f9104703d4d70cf065275 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Thu, 9 Jul 2020 08:03:31 +0200 Subject: [PATCH] macos: ldd does not exit, use otool instead --- tests/Makefile | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.11.4.GIT