ARM: fix build warning for unw usage
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 11 Apr 2016 04:49:27 +0000 (13:49 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 12 Apr 2016 08:35:47 +0000 (17:35 +0900)
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 <myungjoo.ham@samsung.com>
src/pal/src/CMakeLists.txt

index 2034812..a071ac5 100644 (file)
@@ -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