Skip to content

Commit 965c373

Browse files
allevatoswiple-rules-gardener
authored andcommitted
Fix filenames with spaces after switching to the CROSSTOOL archive action.
RELNOTES: None. PiperOrigin-RevId: 244947843
1 parent 4390010 commit 965c373

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

swift/internal/derived_files.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ def _intermediate_frontend_file_path(target_name, src):
6969
"""
7070
objs_dir = "{}_objs".format(target_name)
7171
owner_rel_path = owner_relative_path(src)
72-
return paths.join(objs_dir, paths.dirname(owner_rel_path)), src.basename
72+
73+
# TODO(b/131185317): Remove this once ar_wrapper handles filenames with spaces correctly.
74+
safe_name = src.basename.replace(" ", "__SPACE__")
75+
return paths.join(objs_dir, paths.dirname(owner_rel_path)), safe_name
7376

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

0 commit comments

Comments
 (0)