mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
waf: enable gccdeps, using gcc dependencies
this is considerably faster than the way dependency system
This commit is contained in:
parent
ad49f4fdbf
commit
290f050575
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user