Set -march=armv7-a for Alpine Linux ARM32 (#17730)
authorkasper3 <33230602+kasper3@users.noreply.github.com>
Mon, 23 Apr 2018 20:47:36 +0000 (23:47 +0300)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 23 Apr 2018 20:47:36 +0000 (13:47 -0700)
* Set -march=armv7-a for Alpine Linux ARM32

* Remove armv7-linux-gnueabi[hf]

* Cast RLIM_INFINITY to size_t

compileoptions.cmake
src/gc/unix/cgroup.cpp

index 9c352e8..a6047d9 100644 (file)
@@ -62,12 +62,10 @@ if(CLR_CMAKE_PLATFORM_UNIX_ARM)
    # we have to set the triple by adding a compiler argument
    add_compile_options(-mthumb)
    add_compile_options(-mfpu=vfpv3)
+   add_compile_options(-march=armv7-a)
    if(ARM_SOFTFP)
      add_definitions(-DARM_SOFTFP)
      add_compile_options(-mfloat-abi=softfp)
-     add_compile_options(-target armv7-linux-gnueabi)
-   else()
-     add_compile_options(-target armv7-linux-gnueabihf)
    endif(ARM_SOFTFP)
 endif(CLR_CMAKE_PLATFORM_UNIX_ARM)
 
index f892a33..42b99ef 100644 (file)
@@ -404,7 +404,7 @@ size_t GetRestrictedPhysicalMemoryLimit()
          physical_memory_limit = SIZE_T_MAX;
 
     struct rlimit curr_rlimit;
-    size_t rlimit_soft_limit = RLIM_INFINITY;
+    size_t rlimit_soft_limit = (size_t)RLIM_INFINITY;
     if (getrlimit(RLIMIT_AS, &curr_rlimit) == 0)
     {
         rlimit_soft_limit = curr_rlimit.rlim_cur;