Tools require EH for their top-level try blocks.
[oota-llvm.git] / tools / llvm-ar / Makefile
1 ##===- tools/llvm-ar/Makefile ------------------------------*- Makefile -*-===##
2
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
7
8 ##===----------------------------------------------------------------------===##
9 LEVEL = ../..
10
11 TOOLNAME = llvm-ar
12 USEDLIBS = LLVMArchive.a LLVMBCReader.a \
13            LLVMCore.a LLVMSupport.a LLVMbzip2.a LLVMSystem.a
14 REQUIRES_EH := 1
15
16 include $(LEVEL)/Makefile.common
17
18 check-local::
19         $(Echo) Checking llvm-ar
20         $(Verb) $(ToolDir)/llvm-ar zRrS nada.a .
21         $(Verb) $(ToolDir)/llvm-ar tv nada.a | \
22           grep Debug/llvm-ar.d >/dev/null 2>&1
23         $(Verb) $(RM) -f nada.a