mirror of https://github.com/acidanthera/audk.git
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:
parent
28a34033ee
commit
cbe2e9ee55
|
@ -61,7 +61,13 @@ case `uname` in
|
||||||
;;
|
;;
|
||||||
Darwin*)
|
Darwin*)
|
||||||
Major=$(uname -r | cut -f 1 -d '.')
|
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
|
case $Major in
|
||||||
|
[156789])
|
||||||
|
echo OvmfPkg requires OS X Snow Leopard 10.6 or newer OS
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
10)
|
10)
|
||||||
TARGET_TOOLS=XCODE32
|
TARGET_TOOLS=XCODE32
|
||||||
;;
|
;;
|
||||||
|
@ -69,8 +75,8 @@ case `uname` in
|
||||||
TARGET_TOOLS=XCLANG
|
TARGET_TOOLS=XCLANG
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo OvmfPkg requires Snow Leopard or later OS
|
# Mavericks and future assume XCODE5 (clang + lldb)
|
||||||
exit 1
|
TARGET_TOOLS=XCODE5
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue