mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Links wpiutil on roboRIO dynamically (#141)
This commit is contained in:
committed by
Peter Johnson
parent
c45384b91a
commit
aa49ebd47f
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user