Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor committed Dec 10, 2024
1 parent cb1af58 commit 237aa22
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 64 deletions.
13 changes: 7 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ let package = Package(
],
targets: [
.target(
name: "PlaydateKit",
dependencies: ["CPlaydate", "SwiftUnicodeDataTables"],
name: "PlaydateKit",
dependencies: ["CPlaydate", "SwiftUnicodeDataTables"],
swiftSettings: swiftSettings
),
.target(
Expand All @@ -36,18 +36,18 @@ let package = Package(
.plugin(
name: "PDCPlugin",
capability: .command(intent:
.custom(verb: "pdc", description: "Runs the Playdate compiler")
.custom(verb: "pdc", description: "Runs the Playdate compiler")
)
),
],
swiftLanguageModes: [.v6]
)


// MARK: - Helper Variables

// note: These must be computed variables when beneath the `let package =` declaration.

var swiftSettings: [SwiftSetting] {[
var swiftSettings: [SwiftSetting] { [
.enableExperimentalFeature("Embedded"),
.unsafeFlags([
"-whole-module-optimization",
Expand All @@ -61,10 +61,11 @@ var swiftSettings: [SwiftSetting] {[
"-Xcc", "-I", "-Xcc", "\(gccIncludePrefix)/../../../../arm-none-eabi/include",
"-I", "\(playdateSDKPath)/C_API"
]),
]}
] }
var gccIncludePrefix: String {
"/usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/lib/gcc/arm-none-eabi/9.2.1"
}

var playdateSDKPath: String {
if let path = Context.environment["PLAYDATE_SDK_PATH"] {
return path
Expand Down
Loading

0 comments on commit 237aa22

Please sign in to comment.