Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
33db40f8
Commit
33db40f8
authored
Nov 18, 2012
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: sort cpuflags section by architecture
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
457cc333
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
77 additions
and
76 deletions
+77
-76
configure
configure
+77
-76
No files found.
configure
View file @
33db40f8
...
...
@@ -2516,6 +2516,71 @@ enable $arch
# Add processor-specific flags
if
test
"
$cpu
"
=
generic
;
then
:
do
nothing
elif
enabled aarch64
;
then
case
$cpu
in
armv
*
)
cpuflags
=
"-march=
$cpu
"
;;
*
)
cpuflags
=
"-mcpu=
$cpu
"
;;
esac
elif
enabled alpha
;
then
cpuflags
=
"-mcpu=
$cpu
"
elif
enabled arm
;
then
case
$cpu
in
armv
*
)
cpuflags
=
"-march=
$cpu
"
subarch
=
$(
echo
$cpu
|
sed
's/[^a-z0-9]//g'
)
;;
*
)
cpuflags
=
"-mcpu=
$cpu
"
case
$cpu
in
cortex-a
*
)
subarch
=
armv7a
;;
cortex-r
*
)
subarch
=
armv7r
;;
cortex-m
*
)
enable
thumb
;
subarch
=
armv7m
;;
arm11
*
)
subarch
=
armv6
;;
arm[79]
*
e
*
|
arm9[24]6
*
|
arm96
*
|
arm102[26]
)
subarch
=
armv5te
;;
armv4
*
|
arm7
*
|
arm9[24]
*
)
subarch
=
armv4
;;
esac
;;
esac
elif
enabled avr32
;
then
case
$cpu
in
ap7[02]0[0-2]
)
subarch
=
"avr32_ap"
cpuflags
=
"-mpart=
$cpu
"
;;
ap
)
subarch
=
"avr32_ap"
cpuflags
=
"-march=
$cpu
"
;;
uc3[ab]
*
)
subarch
=
"avr32_uc"
cpuflags
=
"-mcpu=
$cpu
"
;;
uc
)
subarch
=
"avr32_uc"
cpuflags
=
"-march=
$cpu
"
;;
esac
elif
enabled bfin
;
then
cpuflags
=
"-mcpu=
$cpu
"
elif
enabled mips
;
then
cpuflags
=
"-march=
$cpu
"
elif
enabled ppc
;
then
case
$(
tolower
$cpu
)
in
...
...
@@ -2565,6 +2630,18 @@ elif enabled ppc; then
;;
esac
elif
enabled sparc
;
then
case
$cpu
in
cypress|f93[04]|tsc701|sparcl
*
|
supersparc|hypersparc|niagara|v[789]
)
cpuflags
=
"-mcpu=
$cpu
"
disable vis
;;
ultrasparc
*
|
niagara[234]
)
cpuflags
=
"-mcpu=
$cpu
"
;;
esac
elif
enabled x86
;
then
case
$cpu
in
...
...
@@ -2591,82 +2668,6 @@ elif enabled x86; then
;;
esac
elif
enabled sparc
;
then
case
$cpu
in
cypress|f93[04]|tsc701|sparcl
*
|
supersparc|hypersparc|niagara|v[789]
)
cpuflags
=
"-mcpu=
$cpu
"
disable vis
;;
ultrasparc
*
|
niagara[234]
)
cpuflags
=
"-mcpu=
$cpu
"
;;
esac
elif
enabled arm
;
then
case
$cpu
in
armv
*
)
cpuflags
=
"-march=
$cpu
"
subarch
=
$(
echo
$cpu
|
sed
's/[^a-z0-9]//g'
)
;;
*
)
cpuflags
=
"-mcpu=
$cpu
"
case
$cpu
in
cortex-a
*
)
subarch
=
armv7a
;;
cortex-r
*
)
subarch
=
armv7r
;;
cortex-m
*
)
enable
thumb
;
subarch
=
armv7m
;;
arm11
*
)
subarch
=
armv6
;;
arm[79]
*
e
*
|
arm9[24]6
*
|
arm96
*
|
arm102[26]
)
subarch
=
armv5te
;;
armv4
*
|
arm7
*
|
arm9[24]
*
)
subarch
=
armv4
;;
esac
;;
esac
elif
enabled alpha
;
then
cpuflags
=
"-mcpu=
$cpu
"
elif
enabled bfin
;
then
cpuflags
=
"-mcpu=
$cpu
"
elif
enabled mips
;
then
cpuflags
=
"-march=
$cpu
"
elif
enabled avr32
;
then
case
$cpu
in
ap7[02]0[0-2]
)
subarch
=
"avr32_ap"
cpuflags
=
"-mpart=
$cpu
"
;;
ap
)
subarch
=
"avr32_ap"
cpuflags
=
"-march=
$cpu
"
;;
uc3[ab]
*
)
subarch
=
"avr32_uc"
cpuflags
=
"-mcpu=
$cpu
"
;;
uc
)
subarch
=
"avr32_uc"
cpuflags
=
"-march=
$cpu
"
;;
esac
elif
enabled aarch64
;
then
case
$cpu
in
armv
*
)
cpuflags
=
"-march=
$cpu
"
;;
*
)
cpuflags
=
"-mcpu=
$cpu
"
;;
esac
fi
add_cflags
$cpuflags
...
...
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