aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2009-05-22 20:55:15 +0000
committerOscar Fuentes <ofv@wanadoo.es>2009-05-22 20:55:15 +0000
commita2ac75d54793b35efee6f4eec4a937822c8e1636 (patch)
tree4d30c7be6a3f0024056c523fd20336bb6d149afa
parentb0f1e1780c736c62fb99e5824825d2a60a53b53b (diff)
downloadexternal_llvm-a2ac75d54793b35efee6f4eec4a937822c8e1636.zip
external_llvm-a2ac75d54793b35efee6f4eec4a937822c8e1636.tar.gz
external_llvm-a2ac75d54793b35efee6f4eec4a937822c8e1636.tar.bz2
CMake: Use libpthread in tblgen when needed. Updated list of source
files for PIC16 target. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72277 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PIC16/CMakeLists.txt1
-rw-r--r--utils/TableGen/CMakeLists.txt3
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PIC16/CMakeLists.txt b/lib/Target/PIC16/CMakeLists.txt
index 6ddb37d..00d737a 100644
--- a/lib/Target/PIC16/CMakeLists.txt
+++ b/lib/Target/PIC16/CMakeLists.txt
@@ -12,6 +12,7 @@ tablegen(PIC16GenSubtarget.inc -gen-subtarget)
add_llvm_target(PIC16
PIC16AsmPrinter.cpp
+ PIC16DebugInfo.cpp
PIC16InstrInfo.cpp
PIC16ISelDAGToDAG.cpp
PIC16ISelLowering.cpp
diff --git a/utils/TableGen/CMakeLists.txt b/utils/TableGen/CMakeLists.txt
index 60ed764..3f982e0 100644
--- a/utils/TableGen/CMakeLists.txt
+++ b/utils/TableGen/CMakeLists.txt
@@ -27,3 +27,6 @@ target_link_libraries(tblgen LLVMSupport LLVMSystem)
if( MINGW )
target_link_libraries(tblgen imagehlp psapi)
endif( MINGW )
+if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD )
+ target_link_libraries(tblgen pthread)
+endif()