diff src/settings.sml @ 2183:74c762002352

Allow duplicate 'file' directives if paths normalize to same value
author Adam Chlipala <adam@chlipala.net>
date Sun, 18 Oct 2015 16:03:56 -0400
parents 3b4a5604ed97
children 14c45a0b6362 1e3ba868f8bf
line wrap: on
line diff
--- a/src/settings.sml	Sun Oct 18 14:46:50 2015 -0400
+++ b/src/settings.sml	Sun Oct 18 16:03:56 2015 -0400
@@ -880,7 +880,7 @@
     in
         case SM.find (!files, Uri) of
             SOME (path', _) =>
-            if path' = path then
+            if OS.Path.mkCanonical path' = OS.Path.mkCanonical path then
                 ()
             else
                 ErrorMsg.error ("Two different files requested for URI " ^ Uri ^ " ( " ^ path' ^ " vs. " ^ path ^ ")")