mirror of
https://github.com/apache/nuttx.git
synced 2026-08-17 02:13:19 +00:00
boards/sim/sim/sim/scripts/Make.defs: Disable libcxx availability macros
This commit is contained in:
parent
6bb7a92a9a
commit
7a576ff056
1 changed files with 8 additions and 0 deletions
|
|
@ -122,6 +122,14 @@ ifeq ($(CONFIG_LIBCXX),y)
|
|||
# XXX what to do for windows?
|
||||
CXXFLAGS += -D__GLIBCXX__
|
||||
endif
|
||||
|
||||
# Disable availability macros.
|
||||
# The availability on Host OS is not likely appropriate for NuttX.
|
||||
#
|
||||
# Note: When compiling NuttX apps, we undefine __APPLE__.
|
||||
# It makes libcxx __availability header unhappy.
|
||||
# https://github.com/llvm/llvm-project/blob/2e2999cd44f6ec9a5e396fa0113497ea82582f69/libcxx/include/__availability#L258
|
||||
CXXFLAGS += -D_LIBCPP_DISABLE_AVAILABILITY
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_SIM_ASAN),y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue