From 08905dd60becc00d1fc65b3048f80891948de66e Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Sat, 20 Jul 2013 03:04:36 +0000 Subject: Add Option unit tests to the make build Previously, they were only built and run in the CMake build. llvm-svn: 186756 --- llvm/unittests/Option/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 llvm/unittests/Option/Makefile (limited to 'llvm/unittests/Option') diff --git a/llvm/unittests/Option/Makefile b/llvm/unittests/Option/Makefile new file mode 100644 index 00000000000..8c90a83da87 --- /dev/null +++ b/llvm/unittests/Option/Makefile @@ -0,0 +1,23 @@ +##===- unittests/Option/Makefile ---------------------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## + +LEVEL = ../.. +TESTNAME = Option +LINK_COMPONENTS := option support + +BUILT_SOURCES = Opts.inc +TABLEGEN_INC_FILES_COMMON = 1 + +include $(LEVEL)/Makefile.config + +include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest + +$(ObjDir)/Opts.inc.tmp : Opts.td $(LLVM_TBLGEN) $(ObjDir)/.dir + $(Echo) "Building Driver Option tables with tblgen" + $(Verb) $(LLVMTableGen) -gen-opt-parser-defs -o $(call SYSPATH, $@) $< -- cgit v1.2.3