diff options
author | deva <deva> | 2005-03-24 12:14:44 +0000 |
---|---|---|
committer | deva <deva> | 2005-03-24 12:14:44 +0000 |
commit | 9466b3042bc7314915a15f499bd0b087f569654d (patch) | |
tree | 29c41f6ba46b9b92d91b92578720e1beee44fc9d /tools/CPUMaker | |
parent | b5a6a93dcc7a83f5c4f8fd1894e303ae58804e0b (diff) |
Initial revision
Diffstat (limited to 'tools/CPUMaker')
-rwxr-xr-x | tools/CPUMaker | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/CPUMaker b/tools/CPUMaker new file mode 100755 index 0000000..d62ff23 --- /dev/null +++ b/tools/CPUMaker @@ -0,0 +1,27 @@ +#!/bin/sh + +FLAG="${FLAG} -ansi -Wall -O2 -finline-functions" + +case "$(cat /proc/cpuinfo | egrep '^model name'|cut -d ':' -f 2|cut -c 2-)" in + 'Intel(R) Pentium(R) M processor 1300MHz') + FLAG="${FLAG} -march=pentium3 -fomit-frame-pointer -ffast-math" + ;; + *) + ;; +esac + +for flag in $(cat /proc/cpuinfo | egrep '^flags'|cut -d ':' -f 2|cut -c 2-); do + case $flag in + mmx) + FLAG="${FLAG} -mmmx" + ;; + sse) + FLAG="${FLAG} -msse" + ;; + sse2) + FLAG="${FLAG} -msse2" + ;; + esac +done + +echo 'GCC_FLAGS = $(QTGCC_FLAGS)' $FLAG |