@@ -12,12 +12,25 @@ index 17ad9e3..953fffd 100755
12
12
return env
13
13
14
14
15
+ diff --git a/swift/utils/swift_build_support/swift_build_support/products/swiftpm.py b/swift/utils/swift_build_support/swift_build_support/products/swiftpm.py
16
+ index 42a2ff914b4..3ea91589a57 100644
17
+ --- a/swift/utils/swift_build_support/swift_build_support/products/swiftpm.py
18
+ +++ b/swift/utils/swift_build_support/swift_build_support/products/swiftpm.py
19
+ @@ -67,7 +67,7 @@ class SwiftPM(product.Product):
20
+
21
+ helper_cmd += [
22
+ "--swiftc-path", swiftc,
23
+ - "--clang-path", self.toolchain.cc,
24
+ + "--clang-path", os.path.join(toolchain_path, "bin", "clang"),
25
+ "--cmake-path", self.toolchain.cmake,
26
+ "--ninja-path", self.toolchain.ninja,
27
+ "--build-dir", self.build_dir,
15
28
diff --git a/swiftpm/Utilities/bootstrap b/swiftpm/Utilities/bootstrap
16
29
index 085056de..1ded1a90 100755
17
30
--- a/swiftpm/Utilities/bootstrap
18
31
+++ b/swiftpm/Utilities/bootstrap
19
32
@@ -615,6 +615,9 @@
20
- "SWIFT_DRIVER_SWIFT_EXEC =" + args.swiftc_path,
33
+ "CC =" + args.clang_path
21
34
]
22
35
23
36
+ if args.cross_compile_hosts and re.match('android-', args.cross_compile_hosts):
0 commit comments