From 1cba2f1ba86983e338150edd50ce8a501883aebf Mon Sep 17 00:00:00 2001 From: Vladimir Plazun/AI Tools Lab /SRR/Engineer/Samsung Electronics Date: Tue, 26 Nov 2019 03:49:23 +0300 Subject: [PATCH] Fix clang build issue (#9192) Clang 10 does not support no-psabi flag ,so build fails due to Werror flag set Signed-off-by: Vladimir Plazun --- infra/nnfw/cmake/buildtool/config/config_linux.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/nnfw/cmake/buildtool/config/config_linux.cmake b/infra/nnfw/cmake/buildtool/config/config_linux.cmake index 9bf646f..86dd0f2 100644 --- a/infra/nnfw/cmake/buildtool/config/config_linux.cmake +++ b/infra/nnfw/cmake/buildtool/config/config_linux.cmake @@ -13,7 +13,7 @@ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER GCC_VERSION_DISABLE_WARNING) endif() # Disable annoying ABI compatibility warning. -if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) list(APPEND FLAGS_CXXONLY "-Wno-psabi") endif() -- 2.7.4