Skip to content

Commit

Permalink
Add IOKit linker args for macOS, disable errors as warnings for all p…
Browse files Browse the repository at this point in the history
…latforms

Due to the serial driver, macOS will not compile this project due to lack of linking to IOKit. This is now fixed, but the serial driver is deprecated so this change is largely meaningless.

Disabled reporting warnings as errors to avoid build jobs failing due to warnings.
  • Loading branch information
garrettsummerfi3ld committed Sep 22, 2024
1 parent 0caeb38 commit ae5b796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ model {
}
}
binaries.all {
if (it.targetPlatform.name == 'osxuniversal') {
linker.args '-framework', 'IOKit'
}
if (it.targetPlatform.name == nativeUtils.wpi.platforms.roborio) {
it.buildable = false
}
Expand Down
1 change: 0 additions & 1 deletion config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ nativeUtils {
}

nativeUtils.wpi.addWarnings()
nativeUtils.wpi.addWarningsAsErrors()

nativeUtils.setSinglePrintPerPlatform()

Expand Down

0 comments on commit ae5b796

Please sign in to comment.