Bug 1360781 - Add Stylo dependencies for ./mach bootstrap on FreeBSD. r=froydnj

MozReview-Commit-ID: 3cD8frPKXnW

--HG--
extra : rebase_source : a2172145af1aec80eb6a67a0a9bd06ab0ec22130
This commit is contained in:
Jan Beich 2017-04-29 02:04:02 +00:00
parent cd1468cb2b
commit 6c24868ec4

View File

@ -4,6 +4,14 @@
from mozboot.base import BaseBootstrapper
STYLO_MOZCONFIG = '''
To enable Stylo in your builds, paste the lines between the chevrons
(>>> and <<<) into your mozconfig file:
<<<
ac_add_options --enable-stylo
>>>
'''
class FreeBSDBootstrapper(BaseBootstrapper):
def __init__(self, version, flavor, **kwargs):
@ -62,5 +70,12 @@ class FreeBSDBootstrapper(BaseBootstrapper):
# TODO: Figure out what not to install for artifact mode
self.pkg_install(*self.browser_packages)
def ensure_stylo_packages(self, state_dir):
self.pkg_install('llvm39')
def suggest_browser_mozconfig(self):
if self.stylo:
print(STYLO_MOZCONFIG)
def upgrade_mercurial(self, current):
self.pkg_install('mercurial')