summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-10-06 01:51:51 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-10-06 01:51:51 +0000
commitde8f33c199f3bf2049b0b732169f2bd8717469c6 (patch)
tree4906ed892dbff03bbd44aae2eff9d7ec0c195755 /utils
parent930193cb5544bd010a0a2bc795c9006913e2c595 (diff)
downloadllvm-de8f33c199f3bf2049b0b732169f2bd8717469c6.tar.gz
llvm-de8f33c199f3bf2049b0b732169f2bd8717469c6.tar.bz2
llvm-de8f33c199f3bf2049b0b732169f2bd8717469c6.tar.xz
Build system infrastructure for multiple tblgens.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CMakeLists.txt16
-rw-r--r--utils/TableGen/Makefile2
2 files changed, 2 insertions, 16 deletions
diff --git a/utils/TableGen/CMakeLists.txt b/utils/TableGen/CMakeLists.txt
index 9e9a3a1d0d..a845ed201d 100644
--- a/utils/TableGen/CMakeLists.txt
+++ b/utils/TableGen/CMakeLists.txt
@@ -1,9 +1,7 @@
set(LLVM_REQUIRES_EH 1)
set(LLVM_REQUIRES_RTTI 1)
-set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_TOOLS_BINARY_DIR})
-
-add_llvm_utility(tblgen
+add_tablegen(llvm-tblgen LLVM
ARMDecoderEmitter.cpp
AsmMatcherEmitter.cpp
AsmWriterEmitter.cpp
@@ -42,15 +40,3 @@ add_llvm_utility(tblgen
X86DisassemblerTables.cpp
X86RecognizableInstr.cpp
)
-target_link_libraries(tblgen LLVMSupport LLVMTableGen)
-if( MINGW )
- target_link_libraries(tblgen imagehlp psapi)
- if(CMAKE_SIZEOF_VOID_P MATCHES "8")
- set_target_properties(tblgen PROPERTIES LINK_FLAGS -Wl,--stack,16777216)
- endif(CMAKE_SIZEOF_VOID_P MATCHES "8")
-endif( MINGW )
-if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
- target_link_libraries(tblgen pthread)
-endif()
-
-install(TARGETS tblgen RUNTIME DESTINATION bin)
diff --git a/utils/TableGen/Makefile b/utils/TableGen/Makefile
index 17e94eacc3..0c4619d1a2 100644
--- a/utils/TableGen/Makefile
+++ b/utils/TableGen/Makefile
@@ -8,7 +8,7 @@
##===----------------------------------------------------------------------===##
LEVEL = ../..
-TOOLNAME = tblgen
+TOOLNAME = llvm-tblgen
USEDLIBS = LLVMTableGen.a LLVMSupport.a
REQUIRES_EH := 1
REQUIRES_RTTI := 1