summaryrefslogtreecommitdiffstats
path: root/source/l/mozjs68/patches/emitter.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/mozjs68/patches/emitter.patch')
-rw-r--r--source/l/mozjs68/patches/emitter.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/l/mozjs68/patches/emitter.patch b/source/l/mozjs68/patches/emitter.patch
new file mode 100644
index 00000000..42545534
--- /dev/null
+++ b/source/l/mozjs68/patches/emitter.patch
@@ -0,0 +1,14 @@
+--- a/python/mozbuild/mozbuild/frontend/emitter.py
++++ b/python/mozbuild/mozbuild/frontend/emitter.py
+@@ -1195,11 +1195,6 @@
+ raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
+ 'is a filename, but a directory is required: %s '
+ '(resolved to %s)' % (local_include, full_path), context)
+- if (full_path == context.config.topsrcdir or
+- full_path == context.config.topobjdir):
+- raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
+- '(%s) resolves to the topsrcdir or topobjdir (%s), which is '
+- 'not allowed' % (local_include, full_path), context)
+ include_obj = LocalInclude(context, local_include)
+ local_includes.append(include_obj.path.full_path)
+ yield include_obj