Skip to content

Commit 921c0e5

Browse files
committed
Simplify lld selection logic in build_script_invocation.py
1 parent 30a5986 commit 921c0e5

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

utils/swift_build_support/swift_build_support/build_script_invocation.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -463,16 +463,7 @@ def convert_to_impl_arguments(self):
463463
"--llvm-install-components=%s" % args.llvm_install_components
464464
]
465465

466-
# On non-Darwin platforms, build lld so we can always have a
467-
# linker that is compatible with the swift we are using to
468-
# compile the stdlib.
469-
#
470-
# This makes it easier to build target stdlibs on systems that
471-
# have old toolchains without more modern linker features.
472-
#
473-
# On Darwin, only build lld if explicitly requested using --build-lld.
474-
should_build_lld = (platform.system() != 'Darwin' or args.build_lld)
475-
if not should_build_lld:
466+
if not args.build_lld:
476467
impl_args += [
477468
"--skip-build-lld"
478469
]

0 commit comments

Comments
 (0)