Skip to content

Commit e96bbbe

Browse files
committed
Remove extractor for -Xwrappe-swift=-debug-prefix-pwd-is-dot
1 parent 7a0ed6d commit e96bbbe

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

refresh.template.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -691,14 +691,7 @@ def _apple_swift_patch(compile_args: typing.List[str]):
691691
# We need to remove it (build_bazel_rules_swift/tools/worker/worker)
692692
compile_args.pop(0)
693693

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`
702695
# We could override index-store by config sourcekit-lsp
703696
compile_args = [arg for arg in compile_args if not arg.startswith('-Xwrapped-swift')]
704697

0 commit comments

Comments
 (0)