Bug 1174524 - Make objdir path comparison case-insensitive on Windows. r=mshal
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Tue, 16 Jun 2015 08:24:29 -0700
changeset 249102 261ed8e1b5e1ebcf1441b9d349479173385b53a2
parent 249101 d8783d8b557f24f35c57255867ad37176d341f13
child 249103 85f92f328b52e7fb337f5aa209e711df19c88e83
push id61140
push userbirunthan@mohanathas.com
push dateTue, 16 Jun 2015 15:25:08 +0000
treeherdermozilla-inbound@261ed8e1b5e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal
bugs1174524
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1174524 - Make objdir path comparison case-insensitive on Windows. r=mshal os.path.realpath already implies os.path.normpath, so this just changes normpath to normcase.
python/mozbuild/mozbuild/base.py
--- a/python/mozbuild/mozbuild/base.py
+++ b/python/mozbuild/mozbuild/base.py
@@ -38,18 +38,18 @@ def ancestors(path):
         newpath = os.path.dirname(path)
         if newpath == path:
             break
         path = newpath
 
 def samepath(path1, path2):
     if hasattr(os.path, 'samefile'):
         return os.path.samefile(path1, path2)
-    return os.path.normpath(os.path.realpath(path1)) == \
-        os.path.normpath(os.path.realpath(path2))
+    return os.path.normcase(os.path.realpath(path1)) == \
+        os.path.normcase(os.path.realpath(path2))
 
 class BadEnvironmentException(Exception):
     """Base class for errors raised when the build environment is not sane."""
 
 
 class BuildEnvironmentNotFoundException(BadEnvironmentException):
     """Raised when we could not find a build environment."""