Skip to content

Commit

Permalink
[infra/acl] Fix build fail on clang (Samsung#11733)
Browse files Browse the repository at this point in the history
This commit fixes build fail by deprecated-copy warning on clang > 10 (ex. ndk > 21)

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Oct 18, 2023
1 parent 5b2bc82 commit 11478d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infra/nnfw/cmake/packages/ARMComputeConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ function(_ARMCompute_Build ARMComputeInstall_DIR)
set(SCONS_CXX "clang++")
endif(ANDROID)

if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
list(APPEND SCONS_OPTIONS "extra_cxx_flags=-Wno-deprecated-copy")
endif()

message(STATUS "Build ARMCompute with ${SCONS_PATH} ('${SCONS_OPTIONS}'")

# Build ARMCompute libraries with SCONS
Expand Down

0 comments on commit 11478d7

Please sign in to comment.