Skip to content

Commit 82ed725

Browse files
committed
Install LLVM for full compiler builds
1 parent 3c95bf0 commit 82ed725

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

swift-ci/sdks/android/patches/swift-android-devel.patch

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,3 @@
1-
diff --git a/swift/utils/swift_build_support/swift_build_support/cmake.py b/swift/utils/swift_build_support/swift_build_support/cmake.py
2-
index bfb69965890..b5e9f5349c2 100644
3-
--- a/swift/utils/swift_build_support/swift_build_support/cmake.py
4-
+++ b/swift/utils/swift_build_support/swift_build_support/cmake.py
5-
@@ -153,10 +153,8 @@ class CMake(object):
6-
toolchain_path = product.native_toolchain_path(args.host_target)
7-
cmake_swiftc_path = os.getenv('CMAKE_Swift_COMPILER',
8-
os.path.join(toolchain_path, 'bin', 'swiftc'))
9-
- define("CMAKE_C_COMPILER:PATH", os.path.join(toolchain_path,
10-
- 'bin', 'clang'))
11-
- define("CMAKE_CXX_COMPILER:PATH", os.path.join(toolchain_path,
12-
- 'bin', 'clang++'))
13-
+ define("CMAKE_C_COMPILER:PATH", toolchain.cc)
14-
+ define("CMAKE_CXX_COMPILER:PATH", toolchain.cxx)
15-
define("CMAKE_Swift_COMPILER:PATH", cmake_swiftc_path)
16-
else:
17-
cmake_swiftc_path = os.getenv('CMAKE_Swift_COMPILER', toolchain.swiftc)
181
diff --git a/swift/utils/swift_build_support/swift_build_support/products/product.py b/swift/utils/swift_build_support/swift_build_support/products/product.py
192
index 47e7ab79905..d88c3c242ad 100644
203
--- a/swift/utils/swift_build_support/swift_build_support/products/product.py

swift-ci/sdks/android/scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ for arch in $archs; do
408408

409409
case $build_compiler in
410410
1|true|yes|YES)
411-
build_cmark=""
411+
build_cmark="--install-llvm"
412412
local_build=""
413413
build_llvm="1"
414414
build_swift_tools="1"

0 commit comments

Comments
 (0)