Add Option unit tests to the make build
authorHans Wennborg <hans@hanshq.net>
Sat, 20 Jul 2013 03:04:36 +0000 (03:04 +0000)
committerHans Wennborg <hans@hanshq.net>
Sat, 20 Jul 2013 03:04:36 +0000 (03:04 +0000)
Previously, they were only built and run in the CMake build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186756 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/Makefile
unittests/Option/Makefile [new file with mode: 0644]

index d8bf1f8fffd3deebb777df05bcbf3851a4ac508f..36b82da9e6028ea4b2081acb419768f9887481ff 100644 (file)
@@ -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
 
diff --git a/unittests/Option/Makefile b/unittests/Option/Makefile
new file mode 100644 (file)
index 0000000..8c90a83
--- /dev/null
@@ -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, $@) $<