waf: add workaround for PE linker not removing unused methods

This commit is contained in:
Francisco Ferreira 2017-08-09 23:57:05 +01:00
parent eb56a010b3
commit d41dd7e7e7
No known key found for this signature in database
GPG Key ID: F63C20A6773E787E
1 changed files with 9 additions and 1 deletions

View File

@ -93,7 +93,15 @@ def ap_get_all_libraries(bld):
@conf @conf
def ap_common_vehicle_libraries(bld): 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 = {} _grouped_programs = {}