Allow case insensitive build version argument for MSVC.
authorAndrew Dunstan <[email protected]>
Thu, 23 Jan 2014 17:18:15 +0000 (12:18 -0500)
committerAndrew Dunstan <[email protected]>
Thu, 23 Jan 2014 17:18:15 +0000 (12:18 -0500)
Dilip Kumar.

src/tools/msvc/build.pl

index c947bbe318e36a1f7ecf6c3dbd15c17f3e008997..e107d4120a32679c69dd7969af52db9825bbdc4e 100644 (file)
@@ -39,11 +39,11 @@ my $vcver = Mkvcbuild::mkvcbuild($config);
 
 my $bconf     = $ENV{CONFIG} || "Release";
 my $buildwhat = $ARGV[1]     || "";
-if ($ARGV[0] eq 'DEBUG')
+if (uc($ARGV[0]) eq 'DEBUG')
 {
        $bconf = "Debug";
 }
-elsif ($ARGV[0] ne "RELEASE")
+elsif (uc($ARGV[0]) ne "RELEASE")
 {
        $buildwhat = $ARGV[0] || "";
 }