Don't run vector tests if we just have llvmgcc3

llvm-svn: 27547
diff --git a/SingleSource/UnitTests/Makefile b/SingleSource/UnitTests/Makefile
index 3716ec5..88a0c17 100644
--- a/SingleSource/UnitTests/Makefile
+++ b/SingleSource/UnitTests/Makefile
@@ -1,6 +1,13 @@
 # SingleSource/UnitTests/Makefile
-
-DIRS = Vector SetjmpLongjmp
 LEVEL = ../..
+include $(LEVEL)/Makefile.config
+
+DIRS := SetjmpLongjmp
+
+# llvm-gcc3 does not support any vector tests.
+ifneq ($(LLVMGCC_MAJVERS),3)
+DIRS += Vector
+endif
+
 include $(LEVEL)/SingleSource/Makefile.singlesrc