summarylogtreecommitdiffstats
path: root/llvm15.patch
blob: 47094d525b8d50419f52a69386a5cfa463ee9780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- a/CMakeLists.txt	2023-02-06 01:05:30.000000000 +0100
+++ b/CMakeLists.txt	2023-03-17 16:28:27.484191793 +0100
@@ -348,34 +348,14 @@
   AllTargetsCodeGens
   AllTargetsDescs
   AllTargetsInfos
-  AggressiveInstCombine
-  Analysis
-  AsmParser
-  BitWriter
-  CodeGen
-  Core
-  Extensions
-  IPO
-  IRReader
-  InstCombine
-  Instrumentation
-  MC
-  MCJIT
-  ObjCARCOpts
-  OrcJIT
-  Remarks
-  ScalarOpts
   Support
-  Symbolize
-  Target
-  TransformUtils
-  Vectorize
-  Passes)
+  )
 if(APPLE)
   target_link_libraries(codonc PRIVATE ${LLVM_LIBS} fmt dl codonrt)
 else()
   target_link_libraries(codonc PRIVATE ${STATIC_LIBCPP} ${LLVM_LIBS} fmt dl codonrt)
 endif()
+target_link_libraries (codonc PUBLIC LLVM)
 
 # Gather headers
 add_custom_target(