Skip to content

Commit 6755b56

Browse files
committed
Remove space-in-path replacement
This replacement causes issues with importing indexstores. In 965c373 this replacement was added to work around issues with `ar_wrapper`. I don't see `ar_wrapper` used anywhere in Bazel, so I believe this is safe to remove.
1 parent 477df3a commit 6755b56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

swift/internal/derived_files.bzl

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ def _intermediate_frontend_file_path(target_name, src):
113113
"""
114114
objs_dir = "{}_objs".format(target_name)
115115

116-
owner_rel_path = owner_relative_path(src).replace(" ", "__SPACE__")
117-
safe_name = paths.basename(owner_rel_path)
116+
owner_rel_path = owner_relative_path(src)
117+
basename = paths.basename(owner_rel_path)
118118

119-
return paths.join(objs_dir, paths.dirname(owner_rel_path)), safe_name
119+
return paths.join(objs_dir, paths.dirname(owner_rel_path)), basename
120120

121121
def _intermediate_object_file(actions, target_name, src):
122122
"""Declares a file for an intermediate object file during compilation.

0 commit comments

Comments
 (0)