From 7f535eb7dfb6abc4f66e6cfbab7757f90aed1eac Mon Sep 17 00:00:00 2001 From: Jason Orendorff Date: Sun, 31 Aug 2008 09:51:52 -0500 Subject: [PATCH] Fix for build breakage on Windows due to bad dom_quickstubs.depends file. The bad file contains a backslash, which causes GNU make to choke. This fix causes the file to be generated correctly, but the file on the Windows build machines is still there and still contains backslashes; a clobber should fix this. The Try Server didn't catch this because every Try build is a clobber. --- js/src/xpconnect/src/qsgen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/src/xpconnect/src/qsgen.py b/js/src/xpconnect/src/qsgen.py index 8469e7e029fd..263ec67b7020 100644 --- a/js/src/xpconnect/src/qsgen.py +++ b/js/src/xpconnect/src/qsgen.py @@ -188,7 +188,9 @@ class UserError(Exception): def findIDL(includePath, irregularFilenames, interfaceName): filename = irregularFilenames.get(interfaceName, interfaceName) + '.idl' for d in includePath: - path = os.path.join(d, filename) + # Not os.path.join: we need a forward slash even on Windows because + # this filename ends up in makedepend output. + path = d + '/' + filename if os.path.exists(path): return path raise UserError("No IDL file found for interface %s "