diff options
author | Andrew Fish <afish@apple.com> | 2015-02-17 00:05:41 +0000 |
---|---|---|
committer | jljusten <jljusten@Edk2> | 2015-02-17 00:05:41 +0000 |
commit | cbe2e9ee553075793559ab55fe7358a7b84ab97e (patch) | |
tree | 5bbc2e010c5bd0eefc0f10b44dccac20854f1216 | |
parent | 28a34033eeab2a5078b9d92bcd6ed507a7ea191f (diff) | |
download | edk2-platforms-cbe2e9ee553075793559ab55fe7358a7b84ab97e.tar.xz |
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
-rwxr-xr-x | OvmfPkg/build.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh index aaeefa14c4..920d22f217 100755 --- a/OvmfPkg/build.sh +++ b/OvmfPkg/build.sh @@ -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 ;; |