File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,25 @@ add_custom_command_target(unused_var
123
123
COMMENT "Symlinking Clang resource headers into ${SWIFTLIB_DIR} /clang" )
124
124
add_dependencies (copy_shim_headers symlink_clang_headers )
125
125
126
+ if (NOT SWIFT_BUILT_STANDALONE )
127
+ if (TARGET clang-resource-headers ) # LLVM > 8
128
+ set (clang_resource_headers clang-resource-headers )
129
+ elseif (TARGET clang-headers ) # LLVM <= 8
130
+ set (clang_resource_headers clang-headers )
131
+ else ()
132
+ message (SEND_ERROR
133
+ "Unable to determine clang resource headers target in unified build" )
134
+ endif ()
135
+
136
+ foreach (target
137
+ symlink_clang_headers
138
+ clang-builtin-headers
139
+ clang-resource-dir-symlink
140
+ clang-builtin-headers-in-clang-resource-dir )
141
+ add_dependencies (${target} ${clang_resource_headers} )
142
+ endforeach ()
143
+ endif ()
144
+
126
145
swift_install_in_component (FILES ${sources}
127
146
DESTINATION "lib/swift/shims"
128
147
COMPONENT stdlib )
You can’t perform that action at this time.
0 commit comments