mirror of https://github.com/ArduPilot/ardupilot
parent
e64fc08e09
commit
55e91f0325
9
wscript
9
wscript
|
@ -90,6 +90,11 @@ revisions.
|
||||||
default=False,
|
default=False,
|
||||||
help="Don't use libiio even if supported by board and dependencies available")
|
help="Don't use libiio even if supported by board and dependencies available")
|
||||||
|
|
||||||
|
g.add_option('--static',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Force a static build')
|
||||||
|
|
||||||
def _collect_autoconfig_files(cfg):
|
def _collect_autoconfig_files(cfg):
|
||||||
for m in sys.modules.values():
|
for m in sys.modules.values():
|
||||||
paths = []
|
paths = []
|
||||||
|
@ -122,6 +127,10 @@ def configure(cfg):
|
||||||
# Allow to differentiate our build from the make build
|
# Allow to differentiate our build from the make build
|
||||||
cfg.define('WAF_BUILD', 1)
|
cfg.define('WAF_BUILD', 1)
|
||||||
|
|
||||||
|
if cfg.options.static:
|
||||||
|
cfg.msg('Using static linking')
|
||||||
|
env.STATIC_LINKING = True
|
||||||
|
|
||||||
cfg.msg('Setting board to', cfg.options.board)
|
cfg.msg('Setting board to', cfg.options.board)
|
||||||
cfg.get_board().configure(cfg)
|
cfg.get_board().configure(cfg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue