[llvm] r186756 - Add Option unit tests to the make build

Hans Wennborg hans at hanshq.net
Fri Jul 19 20:04:37 PDT 2013


Author: hans
Date: Fri Jul 19 22:04:36 2013
New Revision: 186756

URL: http://llvm.org/viewvc/llvm-project?rev=186756&view=rev
Log:
Add Option unit tests to the make build

Previously, they were only built and run in the CMake build.

Added:
    llvm/trunk/unittests/Option/Makefile
Modified:
    llvm/trunk/unittests/Makefile

Modified: llvm/trunk/unittests/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Makefile?rev=186756&r1=186755&r2=186756&view=diff
==============================================================================
--- llvm/trunk/unittests/Makefile (original)
+++ llvm/trunk/unittests/Makefile Fri Jul 19 22:04:36 2013
@@ -9,8 +9,8 @@
 
 LEVEL = ..
 
-PARALLEL_DIRS = ADT ExecutionEngine Support Transforms IR Analysis Bitcode \
-		DebugInfo Object
+PARALLEL_DIRS = ADT Analysis Bitcode DebugInfo ExecutionEngine IR Object \
+		Option Support Transforms
 
 include $(LEVEL)/Makefile.common
 

Added: llvm/trunk/unittests/Option/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Option/Makefile?rev=186756&view=auto
==============================================================================
--- llvm/trunk/unittests/Option/Makefile (added)
+++ llvm/trunk/unittests/Option/Makefile Fri Jul 19 22:04:36 2013
@@ -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, $@) $<





More information about the llvm-commits mailing list