mirror of https://github.com/ArduPilot/ardupilot
AP_Networking: enable networking on macOS
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
This commit is contained in:
parent
a66dc31fbc
commit
ad3cf26338
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
|
|
||||||
#ifndef AP_NETWORKING_ENABLED
|
#ifndef AP_NETWORKING_ENABLED
|
||||||
#if defined(__APPLE__) || defined(__clang__)
|
#if !defined(__APPLE__) && defined(__clang__)
|
||||||
// MacOS can't build lwip, and clang fails on linux
|
// clang fails on linux
|
||||||
#define AP_NETWORKING_ENABLED 0
|
#define AP_NETWORKING_ENABLED 0
|
||||||
#else
|
#else
|
||||||
#define AP_NETWORKING_ENABLED ((CONFIG_HAL_BOARD == HAL_BOARD_LINUX) || (CONFIG_HAL_BOARD == HAL_BOARD_SITL))
|
#define AP_NETWORKING_ENABLED ((CONFIG_HAL_BOARD == HAL_BOARD_LINUX) || (CONFIG_HAL_BOARD == HAL_BOARD_SITL))
|
||||||
|
|
|
@ -8,9 +8,9 @@ def configure(cfg):
|
||||||
if not cfg.env.BOARD_CLASS in ['SITL', 'LINUX', 'ChibiOS']:
|
if not cfg.env.BOARD_CLASS in ['SITL', 'LINUX', 'ChibiOS']:
|
||||||
return
|
return
|
||||||
|
|
||||||
# networking doesn't build on MacOSX or clang
|
# networking doesn't build with clang unless using macOS
|
||||||
if platform.system() == 'Darwin' or 'clang++' in cfg.env.COMPILER_CXX:
|
if platform.system() != 'Darwin' and 'clang++' in cfg.env.COMPILER_CXX:
|
||||||
return
|
return
|
||||||
|
|
||||||
extra_src = [
|
extra_src = [
|
||||||
'modules/lwip/src/core/*c',
|
'modules/lwip/src/core/*c',
|
||||||
|
|
Loading…
Reference in New Issue