~knielsen/ourdelta/bug_484127_484120_2

« back to all changes in this revision

Viewing changes to bakery/util/util.sh

  • Committer: Arjen Lentz
  • Date: 2009-10-28 03:20:03 UTC
  • mfrom: (54.4.30 ourdelta-mariadb51-2)
  • Revision ID: arjen@openquery.com-20091028032003-3ebv58q8zin6xxbd
Merge from 5.1 bakery branch
Made autobake-deb.sh from 5.1 branch into separate autobake51-deb.sh (nasty merge)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
        fi
24
24
        return 0
25
25
}
 
26
 
 
27
# Setting cpu options.
 
28
get_cpuopt () {
 
29
        case "$(gcc -dumpmachine)" in
 
30
          x86_64-*)
 
31
                # gcc barfs on -march=... on x64
 
32
                CPUOPT="-m64 -mtune=generic"
 
33
                ;;
 
34
          *)
 
35
                # we'd use i586 to not trip up mobile/lowpower devices
 
36
                CPUOPT="-m32 -march=i586 -mtune=generic"
 
37
                ;;
 
38
        esac
 
39
        return 0
 
40
}