From f9e020cbaef7bb696d3b5f2e4ad6cec4d1736e38 Mon Sep 17 00:00:00 2001 From: William Dillon Date: Wed, 17 Feb 2016 16:08:53 -0800 Subject: [PATCH] Fixes to enable swift section objects --- Utilities/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/bootstrap b/Utilities/bootstrap index 8ebb4bfcabf..26608efd455 100755 --- a/Utilities/bootstrap +++ b/Utilities/bootstrap @@ -379,7 +379,7 @@ def process_runtime_libraries(build_path, opts, bootstrap=False): raise SystemExit("unable to understand 'swiftc' driver commands") del link_cmd[idx - 1] cmd = [arg for arg in link_cmd - if not arg.endswith(".o") and not arg.endswith(".autolink")] + if arg.endswith("swift_begin.o") or arg.endswith("swift_end.o") or (not arg.endswith(".o") and not arg.endswith(".autolink"))] subprocess.check_call(cmd) return (runtime_module_path, runtime_lib_path)