Skip to content

Commit

Permalink
waf: fix method name
Browse files Browse the repository at this point in the history
Add underscore prefix so that method isn't identified as a waf command
  • Loading branch information
OXINARF authored and tridge committed Nov 12, 2018
1 parent e56f12b commit 10ff67d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def _build_post_funs(bld):
if bld.env.SUBMODULE_UPDATE:
bld.git_submodule_post_fun()

def load_pre_build(bld):
def _load_pre_build(bld):
'''allow for a pre_build() function in build modules'''
brd = bld.get_board()
if getattr(brd, 'pre_build', None):
Expand All @@ -457,7 +457,7 @@ def build(bld):
cxxflags=['-include', 'ap_config.h'],
)

load_pre_build(bld)
_load_pre_build(bld)

if bld.get_board().with_uavcan:
bld.env.AP_LIBRARIES_OBJECTS_KW['use'] += ['uavcan']
Expand Down

0 comments on commit 10ff67d

Please sign in to comment.