OvmfPkg/build.sh: Use XCODE5 for newer OS X releases

Update OS Major number checking to future proof it, and default to
XCODE5 (clang + lldb).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <afish@apple.com>
Reviewed-by: Bruce Cran <bruce.cran@gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16879 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Andrew Fish 2015-02-17 00:05:41 +00:00 committed by jljusten
parent 28a34033ee
commit cbe2e9ee55
1 changed files with 8 additions and 2 deletions

View File

@ -61,7 +61,13 @@ case `uname` in
;;
Darwin*)
Major=$(uname -r | cut -f 1 -d '.')
# Major is Darwin version, not OS X version.
# OS X Yosemite 10.10.2 returns 14.
case $Major in
[156789])
echo OvmfPkg requires OS X Snow Leopard 10.6 or newer OS
exit 1
;;
10)
TARGET_TOOLS=XCODE32
;;
@ -69,8 +75,8 @@ case `uname` in
TARGET_TOOLS=XCLANG
;;
*)
echo OvmfPkg requires Snow Leopard or later OS
exit 1
# Mavericks and future assume XCODE5 (clang + lldb)
TARGET_TOOLS=XCODE5
;;
esac
;;