Skip to content

Commit f9e020c

Browse files
committed
Fixes to enable swift section objects
1 parent 59a6615 commit f9e020c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utilities/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def process_runtime_libraries(build_path, opts, bootstrap=False):
379379
raise SystemExit("unable to understand 'swiftc' driver commands")
380380
del link_cmd[idx - 1]
381381
cmd = [arg for arg in link_cmd
382-
if not arg.endswith(".o") and not arg.endswith(".autolink")]
382+
if arg.endswith("swift_begin.o") or arg.endswith("swift_end.o") or (not arg.endswith(".o") and not arg.endswith(".autolink"))]
383383
subprocess.check_call(cmd)
384384
return (runtime_module_path, runtime_lib_path)
385385

0 commit comments

Comments
 (0)