waf: enable gccdeps, using gcc dependencies

this is considerably faster than the way dependency system
This commit is contained in:
Andrew Tridgell 2018-06-20 16:20:31 +10:00
parent ad49f4fdbf
commit 290f050575

View File

@ -131,7 +131,7 @@ 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') cfg.load('compiler_cxx compiler_c gccdeps')
if cfg.env.COMPILER_CC == 'clang' or cfg.env.COMPILER_CXX == 'clang++': if cfg.env.COMPILER_CC == 'clang' or cfg.env.COMPILER_CXX == 'clang++':
Logs.warn("Warning! Native clang builds can be unstable, please use gcc/g++. \ Logs.warn("Warning! Native clang builds can be unstable, please use gcc/g++. \
\nRefer ardupilot.org docs for more details.") \nRefer ardupilot.org docs for more details.")
@ -140,7 +140,7 @@ def configure(cfg):
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') cfg.load('compiler_cxx compiler_c 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