Skip to content

Commit 8a77ead

Browse files
committed
Add back -no-toolchain-stdlib-rpath when installing sourcekit-lsp
Pull #597 incorrectly removed this, as it's still needed on ELF platforms.
1 parent 24ce1be commit 8a77ead

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Utilities/build-script-helper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ def build_single_product(product: str, swift_exec: str, args: argparse.Namespace
187187
Build one product in the package
188188
"""
189189
swiftpm_args = get_swiftpm_options(swift_exec, args)
190+
if args.action == 'install':
191+
swiftpm_args += ['-Xswiftc', '-no-toolchain-stdlib-rpath']
190192
additional_env = get_swiftpm_environment_variables(swift_exec, args)
191193
cmd = [swift_exec, 'build', '--product', product] + swiftpm_args
192194
check_call(cmd, additional_env=additional_env, verbose=args.verbose)

0 commit comments

Comments
 (0)