This patch sets the default TARGET_TOOLS/PROCESSOR on Darwin/Linux platforms.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Pike R. Alpha <pikeralpha@yahoo.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14054
6f19259b-4bc3-4df7-8a09-
765794883524
echo Cygwin not fully supported yet.
;;
Darwin*)
- Major=$(uname -r | cut -f 1 -d '.')
- if [[ $Major == 9 ]]
- then
+ Major=$(uname -r | cut -f 1 -d '.')
+ case $Major in
+ 10)
+ TARGET_TOOLS=XCODE32
+ ;;
+ 1[12])
+ TARGET_TOOLS=XCLANG
+ ;;
+ *)
echo OvmfPkg requires Snow Leopard or later OS
exit 1
- else
- TARGET_TOOLS=XCODE32
- fi
- ;;
+ ;;
+ esac
+ ;;
Linux*)
gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}')
case $gcc_version in