summaryrefslogtreecommitdiffhomepage
path: root/tasks/toolchains/androidndk.rake
diff options
context:
space:
mode:
authorcrimsonwoods <[email protected]>2015-10-11 16:22:45 +0900
committercrimsonwoods <[email protected]>2015-10-11 16:22:45 +0900
commitc022357ed51e6f4b616e41e253463af4dace698e (patch)
tree9d718317159bb26ce20fa3c907ae51f4d6c18db1 /tasks/toolchains/androidndk.rake
parent3ae425e3f0f479006ff2d2c28080b8c90e6982c9 (diff)
downloadmruby-c022357ed51e6f4b616e41e253463af4dace698e.tar.gz
mruby-c022357ed51e6f4b616e41e253463af4dace698e.zip
Add support for 'mips64' architecture.
Diffstat (limited to 'tasks/toolchains/androidndk.rake')
-rw-r--r--tasks/toolchains/androidndk.rake7
1 files changed, 7 insertions, 0 deletions
diff --git a/tasks/toolchains/androidndk.rake b/tasks/toolchains/androidndk.rake
index ef7b6192a..671deeef5 100644
--- a/tasks/toolchains/androidndk.rake
+++ b/tasks/toolchains/androidndk.rake
@@ -58,6 +58,8 @@ Set ANDROID_NDK_HOME environment variable or set :ndk_home parameter
'arm-linux-androideabi-*'
when /arm64/
'aarch64-linux-android-*'
+ when /mips64/
+ 'mips64el-linux-android-*'
when /mips/
'mipsel-linux-android-*'
when /x86/
@@ -79,6 +81,7 @@ Set ANDROID_NDK_HOME environment variable or set :ndk_home parameter
when /armeabi/ then 'arm-linux-androideabi-'
when /arm64/ then 'aarch64-linux-android-'
when /x86/ then 'x86-'
+ when /mips64/ then 'mips64el-linux-android-'
when /mips/ then 'mipsel-linux-android-'
end
end
@@ -90,6 +93,7 @@ Set ANDROID_NDK_HOME environment variable or set :ndk_home parameter
when /armeabi/ then 'arch-arm'
when /arm64/ then 'arch-arm64'
when /x86/ then 'arch-x86'
+ when /mips64/ then 'arch-mips64'
when /mips/ then 'arch-mips'
end
@@ -104,6 +108,7 @@ Set ANDROID_NDK_HOME environment variable or set :ndk_home parameter
when /armeabi/ then 'arm-linux-androideabi-'
when /arm64/ then 'aarch64-linux-android-'
when /x86/ then 'i686-linux-android-'
+ when /mips64/ then 'mips64el-linux-android-'
when /mips/ then 'mipsel-linux-android-'
end + command
end
@@ -132,6 +137,8 @@ Set ANDROID_NDK_HOME environment variable or set :ndk_home parameter
flags += %W(-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16)
when /arm/
flags += %W(-march=armv5te -mtune=xscale -msoft-float)
+ when /mips64/
+ flags += %W(-fpic -fno-strict-aliasing -finline-functions -ffunction-sections -funwind-tables -fmessage-length=0 -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers -no-canonical-prefixes)
when /mips/
flags += %W(-fpic -fno-strict-aliasing -finline-functions -fmessage-length=0 -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers)
end