Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Utility / CMakeLists.txt
blob16afab1113a970cf02885438f9842bdc4dcb3798
1 set(LLDB_SYSTEM_LIBS)
3 if (APPLE)
4   list(APPEND LLDB_SYSTEM_LIBS
5        ${FOUNDATION_LIBRARY}
6        ${CORE_FOUNDATION_LIBRARY}
7        ${CORE_SERVICES_LIBRARY}
8        ${SECURITY_LIBRARY}
9        ${DEBUG_SYMBOLS_LIBRARY})
10 endif()
12 if(NOT PURE_WINDOWS)
13   list(APPEND LLDB_SYSTEM_LIBS ${CMAKE_THREAD_LIBS_INIT})
14 endif()
16 list(APPEND LLDB_SYSTEM_LIBS ${CMAKE_DL_LIBS})
18 if (CMAKE_SYSTEM_NAME MATCHES "Windows")
19   list(APPEND LLDB_SYSTEM_LIBS ws2_32 rpcrt4)
20 endif ()
22 if (NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB )
23     list(APPEND LLDB_SYSTEM_LIBS atomic)
24 endif()
26 add_lldb_library(lldbUtility NO_INTERNAL_DEPENDENCIES
27   AddressableBits.cpp
28   ArchSpec.cpp
29   Args.cpp
30   Baton.cpp
31   Broadcaster.cpp
32   CompletionRequest.cpp
33   Connection.cpp
34   ConstString.cpp
35   DataBufferHeap.cpp
36   DataBufferLLVM.cpp
37   DataEncoder.cpp
38   DataExtractor.cpp
39   Diagnostics.cpp
40   Environment.cpp
41   Event.cpp
42   FileSpec.cpp
43   FileSpecList.cpp
44   GDBRemote.cpp
45   IOObject.cpp
46   LLDBAssert.cpp
47   LLDBLog.cpp
48   Listener.cpp
49   Log.cpp
50   NameMatches.cpp
51   ProcessInfo.cpp
52   RegisterValue.cpp
53   RegularExpression.cpp
54   Instrumentation.cpp
55   Scalar.cpp
56   SelectHelper.cpp
57   State.cpp
58   Status.cpp
59   Stream.cpp
60   StreamString.cpp
61   StringExtractor.cpp
62   StringExtractorGDBRemote.cpp
63   StringLexer.cpp
64   StringList.cpp
65   StructuredData.cpp
66   TildeExpressionResolver.cpp
67   Timer.cpp
68   TraceGDBRemotePackets.cpp
69   TraceIntelPTGDBRemotePackets.cpp
70   UnimplementedError.cpp
71   UUID.cpp
72   UriParser.cpp
73   UserID.cpp
74   UserIDResolver.cpp
75   VASprintf.cpp
76   VMRange.cpp
77   XcodeSDK.cpp
78   ZipFile.cpp
80   LINK_LIBS
81     ${LLDB_SYSTEM_LIBS}
82     # lldbUtility does not depend on other LLDB libraries
84   LINK_COMPONENTS
85     BinaryFormat
86     Support
87     TargetParser
88   )