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 @@ -691,14 +691,7 @@ def _apple_swift_patch(compile_args: typing.List[str]):
691
691
# We need to remove it (build_bazel_rules_swift/tools/worker/worker)
692
692
compile_args .pop (0 )
693
693
694
- # The worker also expand the arguments defined in swift_rule which was start with -Xwrapped-swift
695
- # Expand -debug-prefix-pwd-is-dot
696
- match = next ((i for i ,v in enumerate (compile_args ) if v == "-Xwrapped-swift=-debug-prefix-pwd-is-dot" ), None )
697
- if match :
698
- compile_args [match ] = "-debug-prefix-map"
699
- compile_args .insert (match + 1 , os .environ ["BUILD_WORKSPACE_DIRECTORY" ] + "=." )
700
-
701
- # Remove other -Xwrapped-swift arguments like `-ephemeral-module-cache` `-global-index-store-import-path`
694
+ # Remove other -Xwrapped-swift arguments like `-debug-prefix-pwd-is-dot` `-ephemeral-module-cache` `-global-index-store-import-path`
702
695
# We could override index-store by config sourcekit-lsp
703
696
compile_args = [arg for arg in compile_args if not arg .startswith ('-Xwrapped-swift' )]
704
697
You can’t perform that action at this time.
0 commit comments