mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
eagle: fix DSP build
The hexagon-clang is clang-3.5 and does not support -fcheck-new.
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user