fix for Vista workaround: "PATH" can be spelt "Path"
authorSimon Marlow <simonmar@microsoft.com>
Mon, 14 May 2007 10:45:09 +0000 (10:45 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Mon, 14 May 2007 10:45:09 +0000 (10:45 +0000)
compiler/main/SysTools.lhs

index 17ed501..5805e3c 100644 (file)
@@ -485,7 +485,8 @@ getGccEnv opts =
   get_b_opt (Option ('-':'B':dir)) = Left dir
   get_b_opt other = Right other  
 
-  mangle_path ("PATH",paths) = ("PATH", '\"' : head b_dirs ++ "\";" ++ paths)
+  mangle_path (path,paths) | map toUpper path == "PATH" 
+        = (path, '\"' : head b_dirs ++ "\";" ++ paths)
   mangle_path other = other
 #endif