From 5b9ce29e7722201f59e288b15d155082d051cde3 Mon Sep 17 00:00:00 2001 From: MyungJoo Ham Date: Mon, 11 Apr 2016 13:49:27 +0900 Subject: [PATCH] ARM: fix build warning for unw usage The warning is coming from libunwind-arm, not coreclr. Libunwind-arm uses SP/PC registers along with other registers, which clang complains. fix #4259 Signed-off-by: MyungJoo Ham --- src/pal/src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pal/src/CMakeLists.txt b/src/pal/src/CMakeLists.txt index 2034812..a071ac5 100644 --- a/src/pal/src/CMakeLists.txt +++ b/src/pal/src/CMakeLists.txt @@ -88,6 +88,9 @@ elseif(PAL_CMAKE_PLATFORM_ARCH_ARM64) ) endif() +if(CLR_CMAKE_PLATFORM_UNIX_TARGET_ARM) +set_source_files_properties(exception/seh.cpp PROPERTIES COMPILE_FLAGS -Wno-error=inline-asm) +endif(CLR_CMAKE_PLATFORM_UNIX_TARGET_ARM) set(SOURCES cruntime/file.cpp cruntime/filecrt.cpp -- 2.7.4