mirror of https://github.com/ArduPilot/ardupilot
waf: add option to disable gccdeps
This commit is contained in:
parent
9bdbd37d98
commit
389a9ee88b
|
@ -131,13 +131,20 @@ def configure(cfg):
|
||||||
_filter_supported_cxx_compilers('g++', 'clang++')
|
_filter_supported_cxx_compilers('g++', 'clang++')
|
||||||
|
|
||||||
if cfg.env.TOOLCHAIN == 'native':
|
if cfg.env.TOOLCHAIN == 'native':
|
||||||
cfg.load('compiler_cxx compiler_c gccdeps')
|
cfg.load('compiler_cxx compiler_c')
|
||||||
|
|
||||||
|
if not cfg.options.disable_gccdeps:
|
||||||
|
cfg.load('gccdeps')
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
cfg.find_toolchain_program('ar')
|
cfg.find_toolchain_program('ar')
|
||||||
|
|
||||||
cfg.msg('Using toolchain', cfg.env.TOOLCHAIN)
|
cfg.msg('Using toolchain', cfg.env.TOOLCHAIN)
|
||||||
cfg.load('compiler_cxx compiler_c gccdeps')
|
cfg.load('compiler_cxx compiler_c')
|
||||||
|
|
||||||
|
if not cfg.options.disable_gccdeps:
|
||||||
|
cfg.load('gccdeps')
|
||||||
|
|
||||||
if cfg.env.COMPILER_CC == 'clang':
|
if cfg.env.COMPILER_CC == 'clang':
|
||||||
cfg.env.CFLAGS += cfg.env.CLANG_FLAGS
|
cfg.env.CFLAGS += cfg.env.CLANG_FLAGS
|
||||||
|
|
5
wscript
5
wscript
|
@ -67,6 +67,11 @@ def options(opt):
|
||||||
default=False,
|
default=False,
|
||||||
help='Configure as debug variant.')
|
help='Configure as debug variant.')
|
||||||
|
|
||||||
|
g.add_option('--disable-gccdeps',
|
||||||
|
action='store_true',
|
||||||
|
default=False,
|
||||||
|
help='Disable the use of GCC dependencies output method and use waf default method.')
|
||||||
|
|
||||||
g.add_option('--enable-asserts',
|
g.add_option('--enable-asserts',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
|
|
Loading…
Reference in New Issue