зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1176642 - Defer import Eclipse backend modules; r=glandium
This import brought in significant parts of the mozbuild package. Moving it to a deferred import reduces the total number of Python modules imported during mach dispatch by 43. --HG-- extra : commitid : GdXsF7agvCT extra : rebase_source : 586f1960c8e7eb400f61467045b064167784f68b
This commit is contained in:
Родитель
3e949ee8fe
Коммит
b5f03038db
|
@ -10,8 +10,6 @@ import sys
|
|||
import subprocess
|
||||
import which
|
||||
|
||||
from mozbuild.backend.cpp_eclipse import CppEclipseBackend
|
||||
|
||||
from mozbuild.base import (
|
||||
MachCommandBase,
|
||||
)
|
||||
|
@ -101,6 +99,7 @@ class MachCommands(MachCommandBase):
|
|||
process = subprocess.check_call(studio + [gradle_dir])
|
||||
|
||||
def get_eclipse_workspace_path(self):
|
||||
from mozbuild.backend.cpp_eclipse import CppEclipseBackend
|
||||
return CppEclipseBackend.get_workspace_path(self.topsrcdir, self.topobjdir)
|
||||
|
||||
def get_visualstudio_workspace_path(self):
|
||||
|
|
Загрузка…
Ссылка в новой задаче