Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
fcaedec2
Commit
fcaedec2
authored
Jan 19, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{android,win32}/build.py: move "-O* -g" to common_flags
parent
ead9d59e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
build.py
android/build.py
+4
-3
build.py
win32/build.py
+3
-3
No files found.
android/build.py
View file @
fcaedec2
...
...
@@ -65,7 +65,8 @@ class AndroidNdkToolchain:
llvm_path
=
os
.
path
.
join
(
ndk_path
,
'toolchains'
,
'llvm'
,
'prebuilt'
,
build_arch
)
llvm_triple
=
'armv7-none-linux-androideabi'
common_flags
=
'-march=armv7-a -mfloat-abi=softfp'
common_flags
=
'-Os -g'
common_flags
+=
' -march=armv7-a -mfloat-abi=softfp'
toolchain_bin
=
os
.
path
.
join
(
toolchain_path
,
'bin'
)
llvm_bin
=
os
.
path
.
join
(
llvm_path
,
'bin'
)
...
...
@@ -80,8 +81,8 @@ class AndroidNdkToolchain:
self
.
nm
=
os
.
path
.
join
(
toolchain_bin
,
arch
+
'-nm'
)
self
.
strip
=
os
.
path
.
join
(
toolchain_bin
,
arch
+
'-strip'
)
self
.
cflags
=
'-Os -g '
+
common_flags
self
.
cxxflags
=
'-Os -g '
+
common_flags
self
.
cflags
=
common_flags
self
.
cxxflags
=
common_flags
self
.
cppflags
=
'--sysroot='
+
sysroot
+
\
' -isystem '
+
os
.
path
.
join
(
install_prefix
,
'include'
)
+
\
' -isystem '
+
os
.
path
.
join
(
sysroot
,
'usr'
,
'include'
,
arch
)
+
\
...
...
win32/build.py
View file @
fcaedec2
...
...
@@ -50,14 +50,14 @@ class CrossGccToolchain:
self
.
nm
=
os
.
path
.
join
(
toolchain_bin
,
arch
+
'-nm'
)
self
.
strip
=
os
.
path
.
join
(
toolchain_bin
,
arch
+
'-strip'
)
common_flags
=
''
common_flags
=
'
-O2 -g
'
if
not
x64
:
# enable SSE support which is required for LAME
common_flags
+=
' -march=pentium3'
self
.
cflags
=
'-O2 -g '
+
common_flags
self
.
cxxflags
=
'-O2 -g '
+
common_flags
self
.
cflags
=
common_flags
self
.
cxxflags
=
common_flags
self
.
cppflags
=
'-isystem '
+
os
.
path
.
join
(
install_prefix
,
'include'
)
self
.
ldflags
=
'-L'
+
os
.
path
.
join
(
install_prefix
,
'lib'
)
self
.
libs
=
''
...
...
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