From ca3ba72cba575ffcad203bbc708b36d03e93ab97 Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 31 Oct 2011 15:56:11 +0000 Subject: EmulatorPkg/build.sh: Detect GCC 4.5 & 4.6 Detect GCC 4.5 & 4.6, and use GCC45 and GCC46 toolchains. Signed-off-by: jljusten Reviewed-by: andrewfish git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12611 6f19259b-4bc3-4df7-8a09-765794883524 --- EmulatorPkg/build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'EmulatorPkg') diff --git a/EmulatorPkg/build.sh b/EmulatorPkg/build.sh index e031c3ee0..06ec37a4c 100755 --- a/EmulatorPkg/build.sh +++ b/EmulatorPkg/build.sh @@ -81,6 +81,20 @@ case `uname` in HOST_PROCESSOR=X64 ;; esac + + gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}') + case $gcc_version in + 4.5.*) + TARGET_TOOLS=GCC45 + ;; + 4.6.*) + TARGET_TOOLS=GCC46 + ;; + *) + TARGET_TOOLS=GCC44 + exit 1 + ;; + esac ;; esac -- cgit v1.2.3