Fix warning when assertions disabled.
[oota-llvm.git] / tools / llvm-ar / Makefile
index 6dc57390302a77a799cf6d13cee167bbd9b442d8..ec862e670209c85dd20764d3fbdc92c71b46a0ac 100644 (file)
@@ -2,13 +2,21 @@
 # 
 #                     The LLVM Compiler Infrastructure
 #
-# This file was developed by the LLVM research group and is distributed under
-# the University of Illinois Open Source License. See LICENSE.TXT for details.
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
 # 
 ##===----------------------------------------------------------------------===##
 LEVEL = ../..
 
-TOOLNAME = llvm-ar 
-USEDLIBS = bcreader vmcore support.a
+TOOLNAME = llvm-ar
+LINK_COMPONENTS = archive
+REQUIRES_EH := 1
 
 include $(LEVEL)/Makefile.common
+
+check-local::
+       $(Echo) Checking llvm-ar
+       $(Verb) $(ToolDir)/llvm-ar zRrS nada.a .
+       $(Verb) $(ToolDir)/llvm-ar tv nada.a | \
+         grep Debug/llvm-ar.d >/dev/null 2>&1
+       $(Verb) $(RM) -f nada.a