eagle: fix DSP build

The hexagon-clang is clang-3.5 and does not support -fcheck-new.
This commit is contained in:
Julian Oes
2016-05-11 09:32:05 +02:00
parent 52af5408d3
commit 097840ef83
+9 -2
View File
@@ -643,7 +643,6 @@ function(px4_add_common_flags)
set(cxx_compile_flags set(cxx_compile_flags
-g -g
-fno-exceptions -fno-exceptions
-fcheck-new
-fno-rtti -fno-rtti
-std=gnu++0x -std=gnu++0x
-fno-threadsafe-statics -fno-threadsafe-statics
@@ -651,6 +650,14 @@ function(px4_add_common_flags)
-D__CUSTOM_FILE_IO__ -D__CUSTOM_FILE_IO__
) )
if (NOT "${OS}" STREQUAL "qurt")
# -fcheck-new is not supported by clang-3.5 from
# HEXAGON_Tools/7.2.10/Tools/bin/hexagon-clang.
list(APPEND cxx_compile_flags
-fcheck-new
)
endif()
set(visibility_flags set(visibility_flags
-fvisibility=hidden -fvisibility=hidden
-include visibility.h -include visibility.h
@@ -708,7 +715,7 @@ function(px4_add_common_flags)
set(added_exe_linker_flags set(added_exe_linker_flags
-Wl,--warn-common -Wl,--warn-common
-Wl,--gc-sections -Wl,--gc-sections
#,--print-gc-sections #,--print-gc-sections
) )
endif() endif()