summaryrefslogtreecommitdiff
path: root/unittests/Option
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-07-20 03:04:36 +0000
committerHans Wennborg <hans@hanshq.net>2013-07-20 03:04:36 +0000
commit6cc16a04797b0d231405f4fb6ccd22a85269ad20 (patch)
tree295eaf788f949427543c6b0a1812e5e94675af52 /unittests/Option
parent96ea03839becf151b2eda518b4bc55b84f6373bf (diff)
downloadllvm-6cc16a04797b0d231405f4fb6ccd22a85269ad20.tar.gz
llvm-6cc16a04797b0d231405f4fb6ccd22a85269ad20.tar.bz2
llvm-6cc16a04797b0d231405f4fb6ccd22a85269ad20.tar.xz
Add Option unit tests to the make build
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
Diffstat (limited to 'unittests/Option')
-rw-r--r--unittests/Option/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/unittests/Option/Makefile b/unittests/Option/Makefile
new file mode 100644
index 0000000000..8c90a83da8
--- /dev/null
+++ b/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, $@) $<