mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
CXXFLAGS: add -fcheck-new whenever -fno-exceptions is used
This is to avoid GCC to optimize null-pointer checks away, in case the default operator new is used together with -fno-exceptions.
This commit is contained in:
@@ -70,7 +70,7 @@ endif
|
||||
|
||||
ARCHCPUFLAGS = -mcpu=cortex-a8 -mfpu=vfpv4-d16
|
||||
ARCHCFLAGS = -fno-builtin
|
||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fno-rtti
|
||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions -fcheck-new -fno-rtti
|
||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
||||
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
||||
ARCHDEFINES =
|
||||
|
||||
Reference in New Issue
Block a user