File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -704,14 +704,7 @@ def _apple_swift_patch(compile_args: typing.List[str]):
704
704
# We need to remove it (build_bazel_rules_swift/tools/worker/worker)
705
705
compile_args .pop (0 )
706
706
707
- # The worker also expand the arguments defined in swift_rule which was start with -Xwrapped-swift
708
- # Expand -debug-prefix-pwd-is-dot
709
- match = next ((i for i ,v in enumerate (compile_args ) if v == "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ), None )
710
- if match :
711
- compile_args [match ] = "-debug-prefix-map"
712
- compile_args .insert (match + 1 , os .environ ["BUILD_WORKSPACE_DIRECTORY" ] + "=." )
713
-
714
- # Remove other -Xwrapped-swift arguments like `-ephemeral-module-cache` `-global-index-store-import-path`
707
+ # Remove other -Xwrapped-swift arguments like `-debug-prefix-pwd-is-dot` `-ephemeral-module-cache` `-global-index-store-import-path`
715
708
# We could override index-store by config sourcekit-lsp
716
709
compile_args = [arg for arg in compile_args if not arg .startswith ('-Xwrapped-swift' )]
717
710
You can’t perform that action at this time.
0 commit comments