Browse Source

waf: fix configure not using WAF_BUILD

The configure phase need the WAF_BUILD var defined, otherwise it will
execute code that's only meant for the make build system.
master
Lucas De Marchi 9 years ago
parent
commit
a9ae5476f3
  1. 6
      wscript

6
wscript

@ -88,6 +88,9 @@ def configure(cfg): @@ -88,6 +88,9 @@ def configure(cfg):
cfg.env.BOARD = cfg.options.board
cfg.env.DEBUG = cfg.options.debug
# Allow to differentiate our build from the make build
cfg.define('WAF_BUILD', 1)
cfg.msg('Setting board to', cfg.options.board)
boards.get_board(cfg.env.BOARD).configure(cfg)
@ -130,9 +133,6 @@ def configure(cfg): @@ -130,9 +133,6 @@ def configure(cfg):
# Always use system extensions
cfg.define('_GNU_SOURCE', 1)
# Allow to differentiate our build from the make build
cfg.define('WAF_BUILD', 1)
cfg.write_config_header(os.path.join(cfg.variant, 'ap_config.h'))
def collect_dirs_to_recurse(bld, globs, **kw):

Loading…
Cancel
Save