diff options
-rw-r--r-- | compileoptions.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compileoptions.cmake b/compileoptions.cmake index 739b1a214c..bda438e050 100644 --- a/compileoptions.cmake +++ b/compileoptions.cmake @@ -42,6 +42,10 @@ if (CLR_CMAKE_PLATFORM_UNIX) # may not generate the same object layout as MSVC. add_compile_options(-Wno-incompatible-ms-struct) + # Some architectures (e.g., ARM) assume char type is unsigned while CoreCLR assumes char is signed + # as x64 does. It has been causing issues in ARM (https://github.com/dotnet/coreclr/issues/4746) + add_compile_options(-fsigned-char) + endif(CLR_CMAKE_PLATFORM_UNIX) if(CLR_CMAKE_PLATFORM_UNIX_ARM) |