@@ -212,12 +212,8 @@ final class JobExecutorTests: XCTestCase {
212
212
213
213
/// Ensure the executor is capable of forwarding its standard input to the compile job that requires it.
214
214
func testInputForwarding( ) throws {
215
- #if os(macOS)
216
- #if arch(arm64)
217
- // Disabled on Apple Silicon
218
- // rdar://76609781
219
- throw XCTSkip ( )
220
- #endif
215
+ #if os(macOS)
216
+ let hostTriple = try Driver ( args: [ " swiftc " , " test.swift " ] ) . hostTriple
221
217
let executor = try SwiftDriverExecutor ( diagnosticsEngine: DiagnosticsEngine ( ) ,
222
218
processSet: ProcessSet ( ) ,
223
219
fileSystem: localFileSystem,
@@ -235,7 +231,7 @@ final class JobExecutorTests: XCTestCase {
235
231
" -primary-file " ,
236
232
// This compile job must read the input from STDIN
237
233
" - " ,
238
- " -target " , " x86_64-apple-darwin18.7.0 " ,
234
+ " -target " , . flag ( hostTriple . triple ) ,
239
235
" -enable-objc-interop " ,
240
236
" -sdk " ,
241
237
. path( . absolute( try toolchain. sdk. get ( ) ) ) ,
@@ -255,9 +251,7 @@ final class JobExecutorTests: XCTestCase {
255
251
. path( . temporary( RelativePath ( " main.o " ) ) ) ,
256
252
. path( . absolute( try toolchain. clangRT. get ( ) ) ) ,
257
253
" -syslibroot " , . path( . absolute( try toolchain. sdk. get ( ) ) ) ,
258
- " -lobjc " , " -lSystem " , " -arch " , " x86_64 " ,
259
- " -force_load " , . path( . absolute( try toolchain. compatibility50. get ( ) ) ) ,
260
- " -force_load " , . path( . absolute( try toolchain. compatibilityDynamicReplacements. get ( ) ) ) ,
254
+ " -lobjc " , " -lSystem " , " -arch " , . flag( hostTriple. archName) ,
261
255
" -L " , . path( . absolute( try toolchain. resourcesDirectory. get ( ) ) ) ,
262
256
" -L " , . path( . absolute( try toolchain. sdkStdlib ( sdk: toolchain. sdk. get ( ) ) ) ) ,
263
257
" -rpath " , " /usr/lib/swift " , " -macosx_version_min " , " 10.14.0 " , " -no_objc_category_merging " ,
0 commit comments