Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
a6b1e964
Commit
a6b1e964
authored
Feb 15, 2017
by
crimsonwoods
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify default cflags.
parent
838fa69a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
tasks/toolchains/android.rake
tasks/toolchains/android.rake
+16
-14
No files found.
tasks/toolchains/android.rake
View file @
a6b1e964
...
...
@@ -203,31 +203,33 @@ Set ANDROID_PLATFORM environment variable or set :platform parameter
def
cflags
flags
=
[]
flags
+=
%W(-D__android__ --sysroot="
#{
sysroot
}
")
flags
+=
%W(-MMD -MP)
flags
+=
%W(-D__android__ -DANDROID --sysroot="
#{
sysroot
}
")
case
toolchain
when
:gcc
flags
+=
%W(-mandroid)
case
arch
when
/armeabi-v7a/
then
flags
+=
%W(-march=armv7-a)
when
/armeabi/
then
flags
+=
%W(-march=armv5te)
when
/arm64-v8a/
then
flags
+=
%W(-march=armv8-a)
when
/armeabi-v7a/
then
flags
+=
%W(-march=armv7-a
-mfpu=vfpv3-d16 -mfloat-abi=softfp -fpic
)
when
/armeabi/
then
flags
+=
%W(-march=armv5te
-mtune=xscale -msoft-float -fpic
)
when
/arm64-v8a/
then
flags
+=
%W(-march=armv8-a
-fpic
)
when
/x86_64/
then
flags
+=
%W(-march=x86-64)
when
/x86/
then
flags
+=
%W(-march=i686)
when
/mips64/
then
flags
+=
%W(-march=mips64)
when
/mips/
then
flags
+=
%W(-march=mips32)
when
/mips64/
then
flags
+=
%W(-march=mips64
r6 -fmessage-length=0 -fpic
)
when
/mips/
then
flags
+=
%W(-march=mips32
-fmessage-length=0 -fpic
)
end
when
:clang
flags
+=
%W(-gcc-toolchain "
#{
gcc_toolchain_path
.
to_s
}
")
case
arch
when
/armeabi-v7a/
then
flags
+=
%W(-target armv7-none-linux-androideabi)
when
/armeabi/
then
flags
+=
%W(-target armv5te-none-linux-androideabi)
when
/arm64-v8a/
then
flags
+=
%W(-target aarch64-none-linux-android)
when
/x86_64/
then
flags
+=
%W(-target x86_64-none-linux-android)
when
/x86/
then
flags
+=
%W(-target i686-none-linux-android)
when
/mips64/
then
flags
+=
%W(-target mips64el-none-linux-android)
when
/mips/
then
flags
+=
%W(-target mipsel-none-linux-android)
when
/armeabi-v7a/
then
flags
+=
%W(-target armv7-none-linux-androideabi
-fpic
)
when
/armeabi/
then
flags
+=
%W(-target armv5te-none-linux-androideabi
-fpic
)
when
/arm64-v8a/
then
flags
+=
%W(-target aarch64-none-linux-android
-fpic
)
when
/x86_64/
then
flags
+=
%W(-target x86_64-none-linux-android
-fPIC
)
when
/x86/
then
flags
+=
%W(-target i686-none-linux-android
-fPIC
)
when
/mips64/
then
flags
+=
%W(-target mips64el-none-linux-android
-fmessage-length=0 -fpic
)
when
/mips/
then
flags
+=
%W(-target mipsel-none-linux-android
-fmessage-length=0 -fpic
)
end
flags
+=
%W(-Wno-invalid-command-line-argument -Wno-unused-command-line-argument)
end
flags
+=
%W(-ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes)
flags
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment