Skip to content

Commit ae5b796

Browse files
Add IOKit linker args for macOS, disable errors as warnings for all platforms
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.
1 parent 0caeb38 commit ae5b796

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ model {
7878
}
7979
}
8080
binaries.all {
81+
if (it.targetPlatform.name == 'osxuniversal') {
82+
linker.args '-framework', 'IOKit'
83+
}
8184
if (it.targetPlatform.name == nativeUtils.wpi.platforms.roborio) {
8285
it.buildable = false
8386
}

config.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ nativeUtils {
1414
}
1515

1616
nativeUtils.wpi.addWarnings()
17-
nativeUtils.wpi.addWarningsAsErrors()
1817

1918
nativeUtils.setSinglePrintPerPlatform()
2019

0 commit comments

Comments
 (0)