summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2012-05-17 08:33:14 +0000
committerKostya Serebryany <kcc@google.com>2012-05-17 08:33:14 +0000
commit82bcc583849f16dace85ed016dc00e4331b80677 (patch)
tree46fd2063b8a5c2e1a1912ad92175a0fdee0c1c0a
parent352358b7152704a3c30ad338af80d84e63ab56ef (diff)
downloadbcm5719-llvm-82bcc583849f16dace85ed016dc00e4331b80677.tar.gz
bcm5719-llvm-82bcc583849f16dace85ed016dc00e4331b80677.zip
[tsan] fix dependency rules in Makefile.old
llvm-svn: 156983
-rw-r--r--compiler-rt/lib/tsan/Makefile.old8
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler-rt/lib/tsan/Makefile.old b/compiler-rt/lib/tsan/Makefile.old
index 642cd60287c..95a5d2faf93 100644
--- a/compiler-rt/lib/tsan/Makefile.old
+++ b/compiler-rt/lib/tsan/Makefile.old
@@ -20,7 +20,7 @@ UNIT_TEST_HDR=$(wildcard rtl/*.h)
INCLUDES=-Irtl $(GTEST_INCLUDE)
-all: $(LIBTSAN) test
+all: libtsan test
help:
@ echo "A little help is always welcome!"
@@ -31,7 +31,9 @@ help:
@ echo
@ echo "For more info, see http://code.google.com/p/data-race-test/wiki/ThreadSanitizer2"
-$(LIBTSAN):
+$(LIBTSAN): libtsan
+
+libtsan:
$(MAKE) -C rtl -f Makefile.old DEBUG=$(DEBUG)
unit_tests/%_test.o: unit_tests/%_test.cc $(UNIT_TEST_HDR)
@@ -46,7 +48,7 @@ rtl_tests/%.o: rtl_tests/%.cc $(LIBTSAN_HEADERS)
tsan_test: $(TEST_OBJ) $(UNIT_TEST_OBJ) $(RTL_TEST_OBJ) $(LIBTSAN) $(GTEST_LIB)
$(CXX) $^ -o $@ $(LDFLAGS)
-test: $(LIBTSAN) tsan_test
+test: libtsan tsan_test
run: all
(ulimit -s 8192; ./tsan_test)
OpenPOWER on IntegriCloud