File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,19 @@ set(LLVM_TOOLCHAIN_TOOLS
112
112
${LLVM_BINUTILS_COMPONENTS}
113
113
CACHE STRING "" )
114
114
115
+ set (LLD_EXPORTED_TARGETS
116
+ lldCommon
117
+ lldCore
118
+ lldDriver
119
+ lldMachO
120
+ lldYAML
121
+ lldReaderWriter
122
+ lldCOFF
123
+ lldELF
124
+ lldMachO2
125
+ lldMinGW
126
+ lldWasm )
127
+
115
128
set (LLVM_DEVELOPMENT_COMPONENTS
116
129
cmake-exports
117
130
llvm-headers
@@ -123,6 +136,7 @@ set(LLVM_DEVELOPMENT_COMPONENTS
123
136
libclang-headers
124
137
lld-headers # requires patch
125
138
lld-libraries # requires patch
139
+ ${LLD_EXPORTED_TARGETS} # cmake export fix
126
140
lld-cmake-exports
127
141
CACHE STRING "" )
128
142
Original file line number Diff line number Diff line change 1
- From 2b6f6d9199b1a7ce9e9034df3909cddd8bcde6d0 Mon Sep 17 00:00:00 2001
1
+ From ef2e03b4ce1244c71fd6fdf918285c948d32a54c Mon Sep 17 00:00:00 2001
2
2
From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= <mamoreau@devolutions.net>
3
3
Date: Wed, 8 Sep 2021 08:49:13 -0400
4
4
Subject: [PATCH] add lld install targets
@@ -9,7 +9,7 @@ Subject: [PATCH] add lld install targets
9
9
2 files changed, 33 insertions(+), 1 deletion(-)
10
10
11
11
diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt
12
- index 2e99564f4..5bb3d9ec0 100644
12
+ index 2e99564f4..9f72266b3 100644
13
13
--- a/lld/CMakeLists.txt
14
14
+++ b/lld/CMakeLists.txt
15
15
@@ -189,9 +189,19 @@ include_directories(BEFORE
@@ -23,7 +23,7 @@ index 2e99564f4..5bb3d9ec0 100644
23
23
+
24
24
+ add_custom_target(lld-headers)
25
25
+ set_target_properties(lld-headers PROPERTIES FOLDER "Misc")
26
- +
26
+ +
27
27
+ if(NOT LLVM_ENABLE_IDE)
28
28
+ add_llvm_install_targets(install-lld-headers
29
29
+ DEPENDS lld-headers
You can’t perform that action at this time.
0 commit comments