Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
4ab9ce34
Commit
4ab9ce34
authored
May 09, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix check-cpu, add more recognized cpus
BUILD/check-cpu: Recognize more cpu's Fix for older compilers
parent
e99c4c6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
BUILD/check-cpu
BUILD/check-cpu
+16
-0
No files found.
BUILD/check-cpu
View file @
4ab9ce34
...
...
@@ -33,6 +33,9 @@ else
esac
fi
cpu_flag
=
""
cpu_flag_obs
=
""
case
"
$cpu_family
--
$model_name
"
in
Alpha
*
EV6
*
)
cpu_flag
=
"ev6"
;
...
...
@@ -40,11 +43,21 @@ case "$cpu_family--$model_name" in
*
Xeon
*
)
cpu_flag
=
"nocona"
;
;;
*
Pentium
*
4
*
Mobile
*
CPU
*
)
cpu_flag
=
"pentium4m"
;
;;
*
Pentium
*
4
*
CPU
*
)
cpu_flag
=
"pentium4"
;
;;
*
Pentium
*
III
*
Mobile
*
CPU
*
)
cpu_flag
=
"pentium3m"
;
;;
*
Pentium
*
III
*
CPU
*
)
cpu_flag
=
"pentium3"
;
;;
*
Athlon
*
64
*
)
cpu_flag
=
"athlon64"
;
cpu_flag_obs
=
"athlon"
;
;;
*
Athlon
*
)
cpu_flag
=
"athlon"
;
...
...
@@ -84,6 +97,9 @@ case "$cc_ver--$cc_verno" in
check_cpu_cflags
=
"-mtune=
$cpu_flag
-march=
$cpu_flag
"
;;
*
GCC
*
)
# Fix for older compiler versions
if
test
-z
"
$cpu_flag_obs
"
;
then
cpu_flag
=
$cpu_flag_obs
;
check_cpu_cflags
=
"-mcpu=
$cpu_flag
-march=
$cpu_flag
"
;;
*
)
...
...
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