]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmulatorPkg/build.sh: Detect GCC 4.5 & 4.6
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 31 Oct 2011 15:56:11 +0000 (15:56 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 31 Oct 2011 15:56:11 +0000 (15:56 +0000)
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

index e031c3ee00813f9a77f4ac8585138ad9b9ea38e7..06ec37a4c167740e3a928e5d79a74ceb10f3a980 100755 (executable)
@@ -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