File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
utils/swift_build_support/swift_build_support/products Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -295,17 +295,13 @@ def build(self, host_target):
295295 if self .args .build_clang_tools_extra :
296296 llvm_enable_projects .append ('clang-tools-extra' )
297297
298- # On non-Darwin platforms, build lld so we can always have a
298+ # Always build lld -- on non-Darwin so we can always have a
299299 # linker that is compatible with the swift we are using to
300- # compile the stdlib.
300+ # compile the stdlib, but on Darwin too for Embedded Swift use cases .
301301 #
302302 # This makes it easier to build target stdlibs on systems that
303303 # have old toolchains without more modern linker features.
304-
305- target = targets .StdlibDeploymentTarget .get_target_for_name (host_target )
306-
307- if not target .platform .is_darwin or self .args .build_lld :
308- llvm_enable_projects .append ('lld' )
304+ llvm_enable_projects .append ('lld' )
309305
310306 llvm_cmake_options .define ('LLVM_ENABLE_PROJECTS' ,
311307 ';' .join (llvm_enable_projects ))
You can’t perform that action at this time.
0 commit comments