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
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
nexedi
MariaDB
Commits
0e15ee61
Commit
0e15ee61
authored
Dec 20, 2008
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support to make it possible to detect an Itanium process or SLES 10
parent
a51ee32b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
BUILD/check-cpu
BUILD/check-cpu
+7
-1
No files found.
BUILD/check-cpu
View file @
0e15ee61
...
...
@@ -16,6 +16,9 @@ check_cpu () {
# on Linux (and others?) we can get detailed CPU information out of /proc
cpuinfo
=
"cat
$CPUINFO
"
# detect CPU architecture
cpu_arch
=
`
$cpuinfo
|
grep
'arch'
|
cut
-d
':'
-f
2 |
cut
-d
' '
-f
2 |
head
-1
`
# detect CPU family
cpu_family
=
`
$cpuinfo
|
grep
'family'
|
cut
-d
':'
-f
2 |
cut
-d
' '
-f
2 |
head
-1
`
if
test
-z
"
$cpu_family
"
;
then
...
...
@@ -60,7 +63,7 @@ check_cpu () {
# detect CPU shortname as used by gcc options
# this list is not complete, feel free to add further entries
cpu_arg
=
""
case
"
$cpu_family
--
$model_name
"
in
case
"
$cpu_family
--
$model_name
--
$spu_arch
"
in
# DEC Alpha
Alpha
*
EV6
*
)
cpu_arg
=
"ev6"
;
...
...
@@ -137,6 +140,9 @@ check_cpu () {
*
Itanium
*
)
cpu_arg
=
"itanium"
;;
*
IA-64
*
)
cpu_arg
=
"itanium"
;;
# Solaris Sparc
*
sparc
*
sun4u
*
)
cpu_arg
=
"sparc"
...
...
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