Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Links wpiutil on roboRIO dynamically (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse authored and PeterJohnson committed Oct 26, 2016
1 parent c45384b commit aa49ebd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ntcore.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ def ntcoreSetupModel = { project ->
}
includes = ['**/*.h']
}
if (project.isArm) {
if (project.isArm && project.hasProperty('compilerPrefix')) {
lib project: ':arm:wpiutil', library: 'wpiutil', linkage: 'static'
} else if (project.isArm) {
// If roboRIO, link shared
lib project: ':arm:wpiutil', library: 'wpiutil', linkage: 'shared'
} else {
lib project: ':native:wpiutil', library: 'wpiutil', linkage: 'static'
}
Expand Down

0 comments on commit aa49ebd

Please sign in to comment.