bstinson / rpms / mozjs60

Forked from rpms/mozjs60 5 years ago
Clone

Blame SOURCES/emitter.patch

dc9548
--- a/python/mozbuild/mozbuild/frontend/emitter.py
dc9548
+++ b/python/mozbuild/mozbuild/frontend/emitter.py
dc9548
@@ -1127,11 +1127,6 @@
dc9548
                 raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
dc9548
                     'does not exist: %s (resolved to %s)' % (local_include,
dc9548
                     full_path), context)
dc9548
-            if (full_path == context.config.topsrcdir or
dc9548
-                    full_path == context.config.topobjdir):
dc9548
-                raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
dc9548
-                    'is not allowed: %s (resolved to %s)' % (local_include,
dc9548
-                    full_path), context)
dc9548
             include_obj = LocalInclude(context, local_include)
dc9548
             local_includes.append(include_obj.path.full_path)
dc9548
             yield include_obj
dc9548