Allow better version reporting for gcc compiler
authorDario Sestito <darios@symbian.org>
Wed, 16 Jun 2010 11:36:40 +0100
changeset 286 047e37a8f43f
parent 282 83443e6675cd
child 287 598059d917c3
Allow better version reporting for gcc compiler
envinfo/envinfo.pl
--- a/envinfo/envinfo.pl	Thu Jun 10 18:49:08 2010 +0100
+++ b/envinfo/envinfo.pl	Wed Jun 16 11:36:40 2010 +0100
@@ -214,9 +214,9 @@
 }
 if ($gcc441_path)
 {
-	my $gcc441_cmd = "$gcc441_path\\arm-none-symbianelf-g++ -dumpversion";
+	my $gcc441_cmd = "$gcc441_path\\arm-none-symbianelf-g++ --version";
 	my $gcc441_out = `$gcc441_cmd`;
-	$gcc441_ver = "4.4.1" if ($gcc441_out =~ /4.4.1/);
+	$gcc441_ver = $1 if ($gcc441_out =~ /arm-none-symbianelf-g\+\+\ (.*)/);
 }
 push @environment_info, {name=>'GCC4.4.1', version=>$gcc441_ver};