File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1259,9 +1259,9 @@ public final class PackageBuilder {
1259
1259
throw InternalError ( " linker does not support treatAllWarnings " )
1260
1260
1261
1261
case . swift:
1262
- // TODO: this should be SWIFT_TREAT_WARNINGS_AS_ERRORS
1263
- // but it probably will break the order of the warning control
1264
- // flags (which is important)
1262
+ // We can't use SWIFT_WARNINGS_AS_WARNINGS_GROUPS and
1263
+ // SWIFT_WARNINGS_AS_ERRORS_GROUPS here.
1264
+ // See https://github.com/swiftlang/swift-build/issues/248
1265
1265
decl = . OTHER_SWIFT_FLAGS
1266
1266
let flag = switch level {
1267
1267
case . error: " -warnings-as-errors "
@@ -1292,6 +1292,9 @@ public final class PackageBuilder {
1292
1292
throw InternalError ( " linker does not support treatWarning " )
1293
1293
1294
1294
case . swift:
1295
+ // We can't use SWIFT_WARNINGS_AS_WARNINGS_GROUPS and
1296
+ // SWIFT_WARNINGS_AS_ERRORS_GROUPS here.
1297
+ // See https://github.com/swiftlang/swift-build/issues/248
1295
1298
decl = . OTHER_SWIFT_FLAGS
1296
1299
let flag = switch level {
1297
1300
case . error: " -Werror "
You can’t perform that action at this time.
0 commit comments