mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:26:50 +08:00
Clang: Do not use new pointer option
This commit is contained in:
@@ -650,9 +650,10 @@ function(px4_add_common_flags)
|
|||||||
-D__CUSTOM_FILE_IO__
|
-D__CUSTOM_FILE_IO__
|
||||||
)
|
)
|
||||||
|
|
||||||
if (NOT "${OS}" STREQUAL "qurt")
|
if (NOT (${CMAKE_C_COMPILER_ID} MATCHES ".*Clang.*"))
|
||||||
# -fcheck-new is not supported by clang-3.5 from
|
# -fcheck-new is a no-op for Clang in general
|
||||||
# HEXAGON_Tools/7.2.10/Tools/bin/hexagon-clang.
|
# and has no effect, but can generate a compile
|
||||||
|
# error for some OS
|
||||||
list(APPEND cxx_compile_flags
|
list(APPEND cxx_compile_flags
|
||||||
-fcheck-new
|
-fcheck-new
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user