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 <[email protected]>

git diff OvmfPkg/build.sh
diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh
index b549ab5..b1f6fde 100755
--- a/OvmfPkg/build.sh
+++ b/OvmfPkg/build.sh
@@ -62,15 +62,19 @@ case `uname` in
   Darwin*)
     Major=$(uname -r | cut -f 1 -d '.')
     case $Major in
+      1[56789])
+        echo OvmfPkg requires Snow Leopard or later OS
+        exit 1
+        ;;
       10)
         TARGET_TOOLS=XCODE32
         ;;
       1[12])
         TARGET_TOOLS=XCLANG
         ;;
-       *)
-        echo OvmfPkg requires Snow Leopard or later OS
-        exit 1
+      *)
+        # Mavericks and future assume XCODE5 (clang + lldb)
+        TARGET_TOOLS=XCODE5
         ;;
     esac
     ;;

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to