File tree 1 file changed +4
-1
lines changed 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -705,9 +705,12 @@ def _get_apple_active_swiftc():
705
705
def _apple_swift_patch (compile_args : typing .List [str ]):
706
706
"""De-Bazel(rule_swift) the command into something sourcekit-lsp can parse."""
707
707
708
- # Remove build_bazel_rules_swift/tools/worker/worker
708
+ # rules_swift add a worker for wrapping if enable --persistent_worker flag (https://bazel.build/remote/persistent)
709
+ # https://github.com/bazelbuild/rules_swift/blob/master/swift/internal/actions.bzl#L236
710
+ # We need to remove it (build_bazel_rules_swift/tools/worker/worker)
709
711
compile_args .pop (0 )
710
712
713
+ # The worker also expand the arguments defined in swift_rule which was start with -Xwrapped-swift
711
714
# Expand -debug-prefix-pwd-is-dot
712
715
match = next ((i for i ,v in enumerate (compile_args ) if v == "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ), None )
713
716
if match :
You can’t perform that action at this time.
0 commit comments