Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Set -march=armv7-a for Alpine Linux ARM32 #17730

Merged
merged 3 commits into from Apr 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions compileoptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion src/gc/unix/cgroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down