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
+
1
9
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
3
11
--- a/swift/test/ClangImporter/pcm-emit-direct-cc1-mode.swift
4
12
+++ 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 @@
13
14
// 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
14
21
diff --git a/swift/test/IRGen/abitypes_arm.swift b/swift/test/IRGen/abitypes_arm.swift
15
22
index 9428294483d..52bd8b10145 100644
16
23
--- a/swift/test/IRGen/abitypes_arm.swift
@@ -111,6 +118,23 @@ index f7f2664b2de..01d36e127c6 100644
111
118
112
119
// CHECK-DISABLED-NOT: normal_count
113
120
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)
114
138
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
115
139
index 274b6037305..bf0f7fcf671 100644
116
140
--- a/swift/utils/swift_build_support/swift_build_support/products/product.py
@@ -124,33 +148,3 @@ index 274b6037305..bf0f7fcf671 100644
124
148
install_destdir = os.path.join(install_destdir, self.args.host_target)
125
149
return targets.toolchain_path(install_destdir,
126
150
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"
0 commit comments