Skip to content

Commit

Permalink
Make FPU settings configurable for installer (dotnet#32053)
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 authored Feb 11, 2020
1 parent e7e6276 commit 5b2eadc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/installer/settings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,18 @@ else()
add_compile_options(-Wno-unused-local-typedef)
add_compile_options(-Wno-unused-macros)
add_compile_options(-Wno-unused-parameter)

if(CLR_CMAKE_TARGET_ARCH_ARM)
if (NOT DEFINED CLR_ARM_FPU_TYPE)
set(CLR_ARM_FPU_TYPE vfpv3)
endif(NOT DEFINED CLR_ARM_FPU_TYPE)

if (NOT DEFINED CLR_ARM_FPU_CAPABILITY)
set(CLR_ARM_FPU_CAPABILITY 0x7)
endif(NOT DEFINED CLR_ARM_FPU_CAPABILITY)

add_definitions(-DCLR_ARM_FPU_CAPABILITY=${CLR_ARM_FPU_CAPABILITY})
endif()
endif()

# Older CMake doesn't support CMAKE_CXX_STANDARD and GCC/Clang need a switch to enable C++ 11
Expand Down

0 comments on commit 5b2eadc

Please sign in to comment.