forked from Archive/PX4-Autopilot
eagle: fix DSP build
The hexagon-clang is clang-3.5 and does not support -fcheck-new.
This commit is contained in:
parent
52af5408d3
commit
097840ef83
|
@ -643,7 +643,6 @@ function(px4_add_common_flags)
|
|||
set(cxx_compile_flags
|
||||
-g
|
||||
-fno-exceptions
|
||||
-fcheck-new
|
||||
-fno-rtti
|
||||
-std=gnu++0x
|
||||
-fno-threadsafe-statics
|
||||
|
@ -651,6 +650,14 @@ function(px4_add_common_flags)
|
|||
-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
|
||||
-fvisibility=hidden
|
||||
-include visibility.h
|
||||
|
@ -708,7 +715,7 @@ function(px4_add_common_flags)
|
|||
set(added_exe_linker_flags
|
||||
-Wl,--warn-common
|
||||
-Wl,--gc-sections
|
||||
#,--print-gc-sections
|
||||
#,--print-gc-sections
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue