Skip to content

Commit

Permalink
Explicitly provide module names to mach so it doesn't try to autogene…
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed May 7, 2019
1 parent 64c8489 commit 36da6df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/mach_bootstrap.py
Expand Up @@ -293,6 +293,10 @@ def populate_context(context, key=None):
mach.define_category(category, meta['short'], meta['long'], meta['priority'])

for path in MACH_MODULES:
mach.load_commands_from_file(os.path.join(topdir, path))
# explicitly provide a module name
# workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1549636
file = os.path.basename(path)
module_name = os.path.splitext(file)[0]
mach.load_commands_from_file(os.path.join(topdir, path), module_name)

return mach

0 comments on commit 36da6df

Please sign in to comment.