This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ add_compile_options(-Wall -Werror -fPIC)
11
11
12
12
if (CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64 OR CMAKE_SYSTEM_PROCESSOR STREQUAL amd64 )
13
13
add_definitions (-DBIT64=1 )
14
+ elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL armv7l )
15
+ add_definitions (-DBIT32=1 )
16
+ # Because we don't use CMAKE_C_COMPILER/CMAKE_CXX_COMPILER to use clang
17
+ # we have to set the triple by adding a compiler argument
18
+ add_compile_options (-target armv7-linux-gnueabihf )
19
+ add_compile_options (-mthumb )
20
+ add_compile_options (-mfpu=vfpv3 )
14
21
endif ()
15
22
16
23
string (TOUPPER ${CMAKE_BUILD_TYPE} UPPERCASE_CMAKE_BUILD_TYPE )
Original file line number Diff line number Diff line change 3
3
usage ()
4
4
{
5
5
echo " Usage: $0 [BuildArch] [BuildType] [clean] [verbose] [clangx.y]"
6
- echo " BuildArch can be: x64"
6
+ echo " BuildArch can be: x64, arm "
7
7
echo " BuildType can be: Debug, Release"
8
8
echo " clean - optional argument to force a clean build."
9
9
echo " verbose - optional argument to enable verbose build output."
@@ -84,7 +84,7 @@ echo "Commencing CoreFX Native build"
84
84
85
85
# Argument types supported by this script:
86
86
#
87
- # Build architecture - valid value is : x64.
87
+ # Build architecture - valid values are : x64, arm .
88
88
# Build Type - valid values are: Debug, Release
89
89
#
90
90
# Set the default arguments for build
@@ -148,6 +148,10 @@ for i in "$@"
148
148
__BuildArch=x64
149
149
__MSBuildBuildArch=x64
150
150
;;
151
+ arm)
152
+ __BuildArch=arm
153
+ __MSBuildBuildArch=arm
154
+ ;;
151
155
debug)
152
156
__BuildType=Debug
153
157
;;
You can’t perform that action at this time.
0 commit comments