diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-07-20 03:04:36 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-07-20 03:04:36 +0000 |
commit | 08905dd60becc00d1fc65b3048f80891948de66e (patch) | |
tree | 7820f6b009b84d485446f05bb3b18e9520eb0cb2 /llvm/unittests | |
parent | 91a85457e9b8ca5c0c2bbd8b0d040cb75c8eeed2 (diff) | |
download | bcm5719-llvm-08905dd60becc00d1fc65b3048f80891948de66e.tar.gz bcm5719-llvm-08905dd60becc00d1fc65b3048f80891948de66e.zip |
Add Option unit tests to the make build
Previously, they were only built and run in the CMake build.
llvm-svn: 186756
Diffstat (limited to 'llvm/unittests')
-rw-r--r-- | llvm/unittests/Makefile | 4 | ||||
-rw-r--r-- | llvm/unittests/Option/Makefile | 23 |
2 files changed, 25 insertions, 2 deletions
diff --git a/llvm/unittests/Makefile b/llvm/unittests/Makefile index d8bf1f8fffd..36b82da9e60 100644 --- a/llvm/unittests/Makefile +++ b/llvm/unittests/Makefile @@ -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/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, $@) $< |