mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1665166 - Normalize non_unified_source paths in gn_processor.py r=firefox-build-system-reviewers,rstewart
In order to support building with relative paths to third-party code we need to normalize the non-unified source paths prior to comparing them to incoming source paths during moz.build file generation. Depends on D91319 Differential Revision: https://phabricator.services.mozilla.com/D91320
This commit is contained in:
parent
45562522d9
commit
67f56c312d
@ -191,6 +191,8 @@ def process_gn_config(gn_config, srcdir, config, output, non_unified_sources,
|
||||
|
||||
project_relsrcdir = mozpath.relpath(srcdir, config.topsrcdir)
|
||||
|
||||
non_unified_sources = set([mozpath.normpath(s) for s in non_unified_sources])
|
||||
|
||||
def target_info(fullname):
|
||||
path, name = target_fullname.split(':')
|
||||
# Stripping '//' gives us a path relative to the project root,
|
||||
|
Loading…
Reference in New Issue
Block a user