aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 2cf9e28..4ce9dfa 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -3,10 +3,10 @@
#
# what tests to run
-TESTS = libtest test3
+TESTS = libtest test1 test3
# these should work too
-# TESTS += test1 test2 speedtest btest weaktest
+TESTS += test2 speedtest btest weaktest
# these don't work as they should
# TESTS += test4 asmtest
@@ -18,6 +18,12 @@ ifdef DISABLE_STATIC
export LD_LIBRARY_PATH:=$(CURDIR)/..
endif
+ifeq ($(TARGETOS),Darwin)
+CFLAGS+=-Wl,-flat_namespace,-undefined,warning
+export MACOSX_DEPLOYMENT_TARGET:=10.2
+NATIVE_DEFINES+=-D_ANSI_SOURCE
+endif
+
# run local version of tcc with local libraries and includes
TCC = ../tcc -B..
RUN_TCC = $(NATIVE_DEFINES) -run -DONE_SOURCE ../tcc.c -B..