Skip to content

Commit 6798948

Browse files
committed
[embedded] Start building and including lld even in Darwin toolchains
1 parent 70d1d99 commit 6798948

File tree

1 file changed

+3
-7
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+3
-7
lines changed

utils/swift_build_support/swift_build_support/products/llvm.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)