Added optimized device builds and harden the Embedded toolchain setup in both the PlayDate bindings and HelloPlayDate example targets.

This commit is contained in:
2026-07-25 10:53:44 +02:00
parent dfeadabfb6
commit 19af75cf7b
6 changed files with 47 additions and 7 deletions
+3 -1
View File
@@ -170,8 +170,10 @@ extension JSON {
return try decode(file: file)
}
// Static message: interpolating the line number would pull integer
// formatting machinery into every device binary that decodes JSON.
private static func decodeError(_ context: DecodeContext) -> PlaydateError {
PlaydateError(message: "\(context.errorMessage ?? "JSON decode failed") (line \(context.errorLine))")
PlaydateError(message: context.errorMessage ?? "JSON decode failed")
}
// MARK: - Encoding