2019-12-11 22:03:27 +01:00
|
|
|
--- a/python/mozbuild/mozbuild/frontend/emitter.py
|
|
|
|
+++ b/python/mozbuild/mozbuild/frontend/emitter.py
|
2020-08-01 00:00:05 +02:00
|
|
|
@@ -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)
|
2019-12-11 22:03:27 +01:00
|
|
|
- if (full_path == context.config.topsrcdir or
|
|
|
|
- full_path == context.config.topobjdir):
|
|
|
|
- raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
|
2020-08-01 00:00:05 +02:00
|
|
|
- '(%s) resolves to the topsrcdir or topobjdir (%s), which is '
|
|
|
|
- 'not allowed' % (local_include, full_path), context)
|
2019-12-11 22:03:27 +01:00
|
|
|
include_obj = LocalInclude(context, local_include)
|
|
|
|
local_includes.append(include_obj.path.full_path)
|
|
|
|
yield include_obj
|