Tools: disable lwip with clang

This commit is contained in:
Andrew Tridgell 2023-12-26 08:50:23 +11:00
parent 2048631526
commit c85f4f875c

View File

@ -687,7 +687,8 @@ class sitl(Board):
'-Werror=missing-declarations',
]
if not cfg.options.disable_networking:
if not cfg.options.disable_networking and not 'clang' in cfg.env.COMPILER_CC:
# lwip doesn't build with clang
env.CXXFLAGS += ['-DAP_NETWORKING_ENABLED=1']
if cfg.options.ubsan or cfg.options.ubsan_abort: