update C++ standard (c++11 -> c++14)

- temporarily disable snapdragon builds until toolchain is updated
This commit is contained in:
Daniel Agar
2020-01-21 21:49:10 -05:00
committed by GitHub
parent cf195b0755
commit b47eaa6061
10 changed files with 17 additions and 13 deletions

View File

@@ -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

View File

@@ -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