mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 22:05:21 +00:00
sim: libcxx: Use __GLIBCXX__ ABI for non macOS
This commit is contained in:
parent
dfa2949b69
commit
ecd66eb90c
1 changed files with 9 additions and 1 deletions
|
|
@ -101,7 +101,15 @@ CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
|
|||
AFLAGS := $(CFLAGS) -D__ASSEMBLY__
|
||||
|
||||
ifeq ($(CONFIG_LIBCXX),y)
|
||||
CXXFLAGS += -DLIBCXX_BUILDING_LIBCXXABI
|
||||
ifeq ($(CONFIG_HOST_MACOS),y)
|
||||
# macOS uses libc++abi
|
||||
CXXFLAGS += -DLIBCXX_BUILDING_LIBCXXABI
|
||||
else
|
||||
# Linux C++ ABI seems vary.
|
||||
# Probably __GLIBCXX__ is the best bet.
|
||||
# XXX what to do for windows?
|
||||
CXXFLAGS += -D__GLIBCXX__
|
||||
endif
|
||||
endif
|
||||
|
||||
# Loadable module definitions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue