File tree Expand file tree Collapse file tree 3 files changed +3
-36
lines changed Expand file tree Collapse file tree 3 files changed +3
-36
lines changed Original file line number Diff line number Diff line change 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)
18
1
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
19
2
index 47e7ab79905..d88c3c242ad 100644
20
3
--- a/swift/utils/swift_build_support/swift_build_support/products/product.py
Original file line number Diff line number Diff line change @@ -10,21 +10,3 @@ index 3f36fc979cb..8713ae8fea8 100755
10
10
"grep",
11
11
"--extended-regexp",
12
12
"--recursive",
13
- diff --git a/swift/utils/swift_build_support/swift_build_support/cmake.py b/swift/utils/swift_build_support/swift_build_support/cmake.py
14
- index 9a0f5b43e2d..5c7d1320a2d 100644
15
- --- a/swift/utils/swift_build_support/swift_build_support/cmake.py
16
- +++ b/swift/utils/swift_build_support/swift_build_support/cmake.py
17
- @@ -150,11 +150,8 @@ class CMake(object):
18
- define("CMAKE_CXX_COMPILER_LAUNCHER:PATH", args.cmake_cxx_launcher)
19
-
20
- if self.prefer_native_toolchain and product:
21
- - clang_tools_path = product.native_clang_tools_path(args.host_target)
22
- - define("CMAKE_C_COMPILER:PATH", os.path.join(clang_tools_path,
23
- - 'bin', 'clang'))
24
- - define("CMAKE_CXX_COMPILER:PATH", os.path.join(clang_tools_path,
25
- - 'bin', 'clang++'))
26
- + define("CMAKE_C_COMPILER:PATH", toolchain.cc)
27
- + define("CMAKE_CXX_COMPILER:PATH", toolchain.cxx)
28
-
29
- toolchain_path = product.native_toolchain_path(args.host_target)
30
- cmake_swiftc_path = os.getenv('CMAKE_Swift_COMPILER',
Original file line number Diff line number Diff line change @@ -411,6 +411,7 @@ for arch in $archs; do
411
411
build_cmark=" "
412
412
local_build=" "
413
413
build_llvm=" 1"
414
+ install_llvm=" --install-llvm"
414
415
build_swift_tools=" 1"
415
416
validation_test=" 1"
416
417
native_swift_tools_path=" "
@@ -420,6 +421,7 @@ for arch in $archs; do
420
421
build_cmark=" --skip-build-cmark"
421
422
local_build=" --skip-local-build"
422
423
build_llvm=" 0"
424
+ install_llvm=" "
423
425
build_swift_tools=" 0"
424
426
validation_test=" 0"
425
427
native_swift_tools_path=" --native-swift-tools-path=$host_toolchain /bin"
@@ -442,7 +444,7 @@ for arch in $archs; do
442
444
--cross-compile-hosts=android-$arch \
443
445
--cross-compile-deps-path=$sdk_root \
444
446
--install-destdir=$sdk_root \
445
- --build-llvm=$build_llvm \
447
+ --build-llvm=$build_llvm ${install_llvm} \
446
448
--build-swift-tools=$build_swift_tools \
447
449
${native_swift_tools_path} \
448
450
${native_clang_tools_path} \
You can’t perform that action at this time.
0 commit comments