File tree 2 files changed +5
-0
lines changed
Sources/SwiftDriver/Toolchains
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,7 @@ public final class DarwinToolchain: Toolchain {
406
406
// If not specified otherwise, we should use the same triple as -target
407
407
if !driver. parsedOptions. hasArgument ( . disableClangTarget) &&
408
408
driver. isFrontendArgSupported ( . clangTarget) {
409
+ print ( " Frontend Supports '-clang-target' " )
409
410
// The common target triple for all Clang dependencies of this compilation,
410
411
// both direct and transitive is computed as:
411
412
// 1. An explicitly-specified `-clang-target` argument to this driver invocation
@@ -423,6 +424,9 @@ public final class DarwinToolchain: Toolchain {
423
424
424
425
commandLine. appendFlag ( . clangTarget)
425
426
commandLine. appendFlag ( clangTargetTriple)
427
+ print ( " Adding '-clang-target \( clangTargetTriple) ' " )
428
+ } else {
429
+ print ( " Frontend Does not support '-clang-target' " )
426
430
}
427
431
}
428
432
}
Original file line number Diff line number Diff line change @@ -3634,6 +3634,7 @@ final class SwiftDriverTests: XCTestCase {
3634
3634
XCTAssertEqual ( plannedJobs. count, 2 )
3635
3635
XCTAssertTrue ( plannedJobs [ 0 ] . commandLine. contains ( . flag( " -target " ) ) )
3636
3636
XCTAssertTrue ( plannedJobs [ 0 ] . commandLine. contains ( . flag( " -clang-target " ) ) )
3637
+ print ( plannedJobs [ 0 ] . commandLine. joinedUnresolvedArguments)
3637
3638
#endif
3638
3639
}
3639
3640
You can’t perform that action at this time.
0 commit comments