mirror of https://github.com/ArduPilot/ardupilot
waf: add workaround for PE linker not removing unused methods
This commit is contained in:
parent
eb56a010b3
commit
d41dd7e7e7
|
@ -93,7 +93,15 @@ def ap_get_all_libraries(bld):
|
|||
|
||||
@conf
|
||||
def ap_common_vehicle_libraries(bld):
|
||||
return COMMON_VEHICLE_DEPENDENT_LIBRARIES
|
||||
libraries = COMMON_VEHICLE_DEPENDENT_LIBRARIES
|
||||
|
||||
if bld.env.DEST_BINFMT == 'pe':
|
||||
libraries += [
|
||||
'AP_Proximity',
|
||||
'AC_Fence',
|
||||
]
|
||||
|
||||
return libraries
|
||||
|
||||
_grouped_programs = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue