mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
update C++ standard (c++11 -> c++14)
- temporarily disable snapdragon builds until toolchain is updated
This commit is contained in:
@@ -109,7 +109,7 @@ CFLAGS = $(ARCHINCLUDES) \
|
||||
-Wno-type-limits
|
||||
|
||||
CXXFLAGS = $(ARCHXXINCLUDES) \
|
||||
-std=gnu++11 \
|
||||
-std=c++14 \
|
||||
-nostdinc++ \
|
||||
${CMAKE_CXX_FLAGS} \
|
||||
$(FLAGS) \
|
||||
@@ -117,6 +117,7 @@ CXXFLAGS = $(ARCHXXINCLUDES) \
|
||||
-fno-builtin \
|
||||
-fno-exceptions \
|
||||
-fno-rtti \
|
||||
-fno-sized-deallocation \
|
||||
-nostdinc++ \
|
||||
-Wno-double-promotion \
|
||||
-Wno-missing-declarations
|
||||
|
||||
@@ -67,6 +67,8 @@ function(px4_os_add_flags)
|
||||
# prevent using the toolchain's std c++ library
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-nostdinc++>)
|
||||
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fno-sized-deallocation>)
|
||||
|
||||
add_definitions(
|
||||
-D__PX4_NUTTX
|
||||
|
||||
|
||||
Reference in New Issue
Block a user