File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -1127,25 +1127,30 @@ struct BuildCommandTestCases {
1127
1127
1128
1128
private static func buildSystemAndOutputLocation( ) throws -> [ ( BuildSystemProvider . Kind , Basics . RelativePath ) ] {
1129
1129
return try SupportedBuildSystemOnPlatform . map { buildSystem in
1130
+ let triple = try UserToolchain . default. targetTriple. withoutVersion ( )
1131
+ let debugFolder = triple. platformName ( ) == " macosx " ? " Debug " : " Debug- \( triple. platformName ( ) ?? " unknown " ) "
1130
1132
switch buildSystem {
1131
1133
case . xcode:
1132
1134
return (
1133
1135
. xcode,
1134
1136
try RelativePath ( validating: " .build " )
1135
1137
. appending ( " apple " )
1136
1138
. appending ( " Products " )
1137
- . appending ( " Debug " )
1138
- . appending ( " ExecutableNew " )
1139
+ . appending ( debugFolder)
1140
+ . appending ( " ExecutableNew.swiftmodule " )
1141
+ . appending ( " Project " )
1142
+ . appending ( " \( triple) .swiftsourceinfo " )
1139
1143
)
1140
1144
case . swiftbuild:
1141
- let triple = try UserToolchain . default. targetTriple. withoutVersion ( ) . tripleString
1142
1145
return (
1143
1146
. swiftbuild,
1144
1147
try RelativePath ( validating: " .build " )
1145
- . appending ( triple)
1148
+ . appending ( triple. tripleString )
1146
1149
. appending ( " Products " )
1147
- . appending ( " Debug " )
1148
- . appending ( " ExecutableNew " )
1150
+ . appending ( debugFolder)
1151
+ . appending ( " ExecutableNew.swiftmodule " )
1152
+ . appending ( " Project " )
1153
+ . appending ( " \( triple) .swiftsourceinfo " )
1149
1154
)
1150
1155
case . native:
1151
1156
return (
You can’t perform that action at this time.
0 commit comments