Skip to content

Commit facd48e

Browse files
committed
Remove extractor for -Xwrappe-swift=-debug-prefix-pwd-is-dot
1 parent 047daf9 commit facd48e

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
@@ -704,14 +704,7 @@ def _apple_swift_patch(compile_args: typing.List[str]):
704704
# We need to remove it (build_bazel_rules_swift/tools/worker/worker)
705705
compile_args.pop(0)
706706

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

0 commit comments

Comments
 (0)