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
983e1f5a
Commit
983e1f5a
authored
Mar 21, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix shell script
BUILD/check-cpu: make comparison a little more compatible with less exotic shells
parent
f52dcd1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
BUILD/check-cpu
BUILD/check-cpu
+7
-2
No files found.
BUILD/check-cpu
View file @
983e1f5a
...
...
@@ -160,13 +160,18 @@ check_cpu () {
cc_ver
=
`
$cc
--version
|
sed
1q
`
cc_verno
=
`
echo
$cc_ver
|
sed
-e
's/^.*gcc/gcc/g; s/[^0-9. ]//g; s/^ *//g; s/ .*//g'
`
set
--
`
echo
$cc_verno
|
tr
'.'
' '
`
cc_major
=
$1
cc_minor
=
$2
cc_patch
=
$3
cc_comp
=
`
expr
$cc_major
'*'
100
'+'
$cc_minor
`
case
"
$cc_ver
--
$cc_verno
"
in
*
GCC
*
)
# different gcc backends (and versions) have different CPU flags
case
`
gcc
-dumpmachine
`
in
i?86-
*
)
if
test
"
$cc_
verno
"
-lt
"3.4"
if
test
"
$cc_
comp
"
-lt
304
then
check_cpu_args
=
'-mcpu=$cpu_arg'
else
...
...
@@ -177,7 +182,7 @@ check_cpu () {
check_cpu_args
=
'-mcpu=$cpu_arg -mtune=$cpu_arg'
;;
x86_64-
*
)
if
test
"
$cc_
verno
"
-lt
"3.4"
if
test
"
$cc_
comp
"
-lt
304
then
check_cpu_args
=
'-mcpu=$cpu_arg'
else
...
...
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