Bug 1057708 - The wrong topsrcdir is used when verifying existence of LOCAL_INCLUDES, r=mshal
authorJoshua Cranmer <Pidgeot18@gmail.com>
Mon, 25 Aug 2014 09:40:58 -0500
changeset 223059 cd456f99c280379f533f6f862c979ccca49384e4
parent 223058 c2ee81c83a01a7c1b9e7addf6bf7dcdfc1ad264b
child 223060 f1254b0f2fd8ef16c563adbd74522eece080a3a4
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal
bugs1057708
milestone34.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 1057708 - The wrong topsrcdir is used when verifying existence of LOCAL_INCLUDES, r=mshal
python/mozbuild/mozbuild/frontend/emitter.py
--- a/python/mozbuild/mozbuild/frontend/emitter.py
+++ b/python/mozbuild/mozbuild/frontend/emitter.py
@@ -565,17 +565,17 @@ class TreeMetadataEmitter(LoggingMixin):
             ('WEBIDL_EXAMPLE_INTERFACES', ExampleWebIDLInterface),
         ]
         for context_var, klass in simple_lists:
             for name in context.get(context_var, []):
                 yield klass(context, name)
 
         for local_include in context.get('LOCAL_INCLUDES', []):
             if local_include.startswith('/'):
-                path = self.config.topsrcdir
+                path = context.config.topsrcdir
                 relative_include = local_include[1:]
             else:
                 path = context.srcdir
                 relative_include = local_include
 
             actual_include = os.path.join(path, relative_include)
             if not os.path.exists(actual_include):
                 raise SandboxValidationError('Path specified in LOCAL_INCLUDES '