diff options
author | unknown <msvensson@neptunus.(none)> | 2005-05-09 14:49:27 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-05-09 14:49:27 +0200 |
commit | b7b8537a598a6ef69bd33f2217e052a7f4005293 (patch) | |
tree | 6a357f8b6b6ad6e2b8b2a0935c5dee324ebcd121 /BUILD/check-cpu | |
parent | a91c804054273a3a645888573c9795d7aa42ac5f (diff) | |
download | mariadb-git-b7b8537a598a6ef69bd33f2217e052a7f4005293.tar.gz |
Fixes after review
BUILD/check-cpu:
Change variable name
Add missing fi
Test with -n instead of -z
Diffstat (limited to 'BUILD/check-cpu')
-rwxr-xr-x | BUILD/check-cpu | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu index d50a83a5475..dfdf96d6b29 100755 --- a/BUILD/check-cpu +++ b/BUILD/check-cpu @@ -34,7 +34,7 @@ else fi cpu_flag="" -cpu_flag_obs="" +cpu_flag_old="" case "$cpu_family--$model_name" in Alpha*EV6*) @@ -57,7 +57,7 @@ case "$cpu_family--$model_name" in ;; *Athlon*64*) cpu_flag="athlon64"; - cpu_flag_obs="athlon"; + cpu_flag_old="athlon"; ;; *Athlon*) cpu_flag="athlon"; @@ -98,8 +98,9 @@ case "$cc_ver--$cc_verno" in ;; *GCC*) # Fix for older compiler versions - if test -z "$cpu_flag_obs"; then - cpu_flag=$cpu_flag_obs; + if test -n "$cpu_flag_old"; then + cpu_flag="$cpu_flag_old" + fi check_cpu_cflags="-mcpu=$cpu_flag -march=$cpu_flag" ;; *) |