Skip to content

Commit 614a515

Browse files
committed
Build compiler-validated bundles from latest branch commits, not older tags
Also update patches, particularly to disable failing tests from the compiler validation suite
1 parent 50ba1cd commit 614a515

File tree

6 files changed

+308
-124
lines changed

6 files changed

+308
-124
lines changed

swift-ci/sdks/android/build-docker

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ HOST_OS=ubuntu24.04
2626
source ./scripts/toolchain-vars.sh
2727

2828
# Check-out and patch the sources
29+
if [[ "${BUILD_COMPILER}" != "1" ]]; then
2930
./scripts/fetch-source.sh --source-dir ${WORKDIR}/source --swift-tag ${SWIFT_TAG}
31+
else
32+
if [[ "${BUILD_SCHEME}" == "development" ]]; then
33+
./scripts/fetch-source.sh --source-dir ${WORKDIR}/source --swift-scheme main
34+
else
35+
./scripts/fetch-source.sh --source-dir ${WORKDIR}/source --swift-scheme release/6.2
36+
fi
37+
fi
3038
./patches/apply-patches.sh ${WORKDIR}/source/swift-project
3139

3240
mkdir -p ${WORKDIR}/products

swift-ci/sdks/android/patches/apply-patches.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ cd ${1}
66
case "${BUILD_SCHEME}" in
77
swift-*-branch)
88
git apply -v -C1 ${patches_dir}/swift-android.patch
9-
git apply -v -C1 ${patches_dir}/swift-android-testing-except-release.patch
9+
git apply -v -C1 ${patches_dir}/swift-android-devel.patch
1010
;;
1111
development)
1212
git apply -v -C1 ${patches_dir}/swift-android.patch
1313
git apply -v -C1 ${patches_dir}/swift-android-trunk-libdispatch.patch
14-
git apply -v -C1 ${patches_dir}/swift-android-testing-except-release.patch
1514
;;
1615
*)
1716
echo "$0: invalid BUILD_SCHEME=${BUILD_SCHEME}"

swift-ci/sdks/android/patches/swift-android-testing-except-release.patch renamed to swift-ci/sdks/android/patches/swift-android-devel.patch

Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1+
commit 2e87eb24f85f3e84bff78051fba4870a5c061ec0
2+
Author: finagolfin
3+
Date: Mon Jun 30 10:39:26 2025
4+
5+
[test] Fix or disable tests for 32-bit platforms (#82501)
6+
7+
Fix two IRGen tests that are failing on Android armv7 and disable eight ClangImporter, C++ Interop, and SILOptimizer tests, two of which that were already failing on other 32-bit platforms.
8+
19
diff --git a/swift/test/ClangImporter/pcm-emit-direct-cc1-mode.swift b/swift/test/ClangImporter/pcm-emit-direct-cc1-mode.swift
2-
index f5048b9e3d5..c227ef7b77d 100644
10+
index f5048b9e3d5..6bc26ca3177 100644
311
--- a/swift/test/ClangImporter/pcm-emit-direct-cc1-mode.swift
412
+++ b/swift/test/ClangImporter/pcm-emit-direct-cc1-mode.swift
5-
@@ -9,7 +9,7 @@
6-
// CHECK-DUMP: Module map file: {{.*[/\\]}}Inputs{{/|\\}}custom-modules{{/|\\}}module.modulemap
7-
8-
// Verify that the clang command-line used is cc1
9-
-// RUN: %FileCheck -check-prefix CHECK-CLANG -DTRIPLE=%target-triple %s < %t.diags.txt
10-
+// RUN: %FileCheck -check-prefix CHECK-CLANG -DTRIPLE=%module-target-triple %s < %t.diags.txt
11-
// CHECK-CLANG: clang importer cc1 args
12-
// CHECK-CLANG-SAME: '-o' '{{.*[/\\]}}script.pcm' '-fsyntax-only' '-x' 'objective-c' '{{.*[/\\]}}module.modulemap' '-triple' '[[TRIPLE]]'
13+
@@ -15,5 +15,7 @@
1314
// CHECK-CLANG-SAME: '-fmodules'
15+
// CHECK-CLANG-NOT: clang importer driver args
16+
17+
+// XFAIL: OS=linux-androideabi
18+
+
19+
import script
20+
var _ : ScriptTy
1421
diff --git a/swift/test/IRGen/abitypes_arm.swift b/swift/test/IRGen/abitypes_arm.swift
1522
index 9428294483d..52bd8b10145 100644
1623
--- a/swift/test/IRGen/abitypes_arm.swift
@@ -111,6 +118,23 @@ index f7f2664b2de..01d36e127c6 100644
111118

112119
// CHECK-DISABLED-NOT: normal_count
113120

121+
diff --git a/swift/utils/swift_build_support/swift_build_support/cmake.py b/swift/utils/swift_build_support/swift_build_support/cmake.py
122+
index bfb69965890..b5e9f5349c2 100644
123+
--- a/swift/utils/swift_build_support/swift_build_support/cmake.py
124+
+++ b/swift/utils/swift_build_support/swift_build_support/cmake.py
125+
@@ -153,10 +153,8 @@ class CMake(object):
126+
toolchain_path = product.native_toolchain_path(args.host_target)
127+
cmake_swiftc_path = os.getenv('CMAKE_Swift_COMPILER',
128+
os.path.join(toolchain_path, 'bin', 'swiftc'))
129+
- define("CMAKE_C_COMPILER:PATH", os.path.join(toolchain_path,
130+
- 'bin', 'clang'))
131+
- define("CMAKE_CXX_COMPILER:PATH", os.path.join(toolchain_path,
132+
- 'bin', 'clang++'))
133+
+ define("CMAKE_C_COMPILER:PATH", toolchain.cc)
134+
+ define("CMAKE_CXX_COMPILER:PATH", toolchain.cxx)
135+
define("CMAKE_Swift_COMPILER:PATH", cmake_swiftc_path)
136+
else:
137+
cmake_swiftc_path = os.getenv('CMAKE_Swift_COMPILER', toolchain.swiftc)
114138
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
115139
index 274b6037305..bf0f7fcf671 100644
116140
--- a/swift/utils/swift_build_support/swift_build_support/products/product.py
@@ -124,33 +148,3 @@ index 274b6037305..bf0f7fcf671 100644
124148
install_destdir = os.path.join(install_destdir, self.args.host_target)
125149
return targets.toolchain_path(install_destdir,
126150
self.args.install_prefix)
127-
diff --git a/swift-corelibs-xctest/cmake/modules/PlatformInfo.cmake b/swift-corelibs-xctest/cmake/modules/PlatformInfo.cmake
128-
index 468dc61..a90ae3d 100644
129-
--- a/swift-corelibs-xctest/cmake/modules/PlatformInfo.cmake
130-
+++ b/swift-corelibs-xctest/cmake/modules/PlatformInfo.cmake
131-
@@ -2,6 +2,10 @@
132-
set(print_target_info_invocation "${CMAKE_Swift_COMPILER}" -print-target-info)
133-
if(CMAKE_Swift_COMPILER_TARGET)
134-
list(APPEND print_target_info_invocation -target ${CMAKE_Swift_COMPILER_TARGET})
135-
+else()
136-
+ set(arg_list ${CMAKE_Swift_FLAGS})
137-
+ separate_arguments(arg_list)
138-
+ list(APPEND print_target_info_invocation ${arg_list})
139-
endif()
140-
execute_process(COMMAND ${print_target_info_invocation} OUTPUT_VARIABLE target_info_json)
141-
message(CONFIGURE_LOG "Swift Target Info: ${print_target_info_invocation}\n"
142-
diff --git a/swift-testing/cmake/modules/PlatformInfo.cmake b/swift-testing/cmake/modules/PlatformInfo.cmake
143-
index 94c60ef..ab8a491 100644
144-
--- a/swift-testing/cmake/modules/PlatformInfo.cmake
145-
+++ b/swift-testing/cmake/modules/PlatformInfo.cmake
146-
@@ -9,6 +9,10 @@
147-
set(print_target_info_invocation "${CMAKE_Swift_COMPILER}" -print-target-info)
148-
if(CMAKE_Swift_COMPILER_TARGET)
149-
list(APPEND print_target_info_invocation -target ${CMAKE_Swift_COMPILER_TARGET})
150-
+else()
151-
+ set(arg_list ${CMAKE_Swift_FLAGS})
152-
+ separate_arguments(arg_list)
153-
+ list(APPEND print_target_info_invocation ${arg_list})
154-
endif()
155-
execute_process(COMMAND ${print_target_info_invocation} OUTPUT_VARIABLE target_info_json)
156-
message(CONFIGURE_LOG "Swift Target Info: ${print_target_info_invocation}\n"

swift-ci/sdks/android/patches/swift-android-testing-release.patch

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)