mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Fix check-cpu, add more recognized cpus
BUILD/check-cpu: Recognize more cpu's Fix for older compilers
This commit is contained in:
parent
e99c4c6cf2
commit
4ab9ce348d
1 changed files with 16 additions and 0 deletions
|
|
@ -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"
|
||||
;;
|
||||
*)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue