From 018940131834cd5796a24ee100eb457bb071d262 Mon Sep 17 00:00:00 2001 From: Roman Levenstein Date: Mon, 22 Feb 2016 10:29:28 -0800 Subject: [PATCH] Use swiftc for linking. --- build_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_script.py b/build_script.py index 1fa20a7ea..188a0acc2 100755 --- a/build_script.py +++ b/build_script.py @@ -100,7 +100,7 @@ def main(): run("{0} -c {1} -emit-object {2} -module-name XCTest -parse-as-library -emit-module " "-emit-module-path {3}/XCTest.swiftmodule -o {3}/XCTest.o -force-single-frontend-invocation " "-module-link-name XCTest".format(swiftc, style_options, " ".join(sourcePaths), build_dir)) - run("clang {1}/lib/swift/linux/{2}/swift_begin.o {0}/XCTest.o {1}/lib/swift/linux/{2}/swift_end.o -shared -o {0}/libXCTest.so -Wl,--no-undefined -Wl,-soname,libXCTest.so -L{1}/lib/swift/linux/ -lswiftGlibc -lswiftCore -lm".format(build_dir, swift_build_dir, args.arch)) + run("{0} -emit-library {1}/XCTest.o -o {1}/libXCTest.so -lswiftGlibc -lswiftCore -lm".format(swiftc, build_dir)) # If we were given an install directive, perform installation if args.module_path is not None and args.lib_path is not None: