Last active

Embed URL


SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Firefox development installation (devtools)

brew install yasm mercurial gawk libidl ccache python 
brew tap homebrew/versions
brew install autoconf213

hg clone

create a .mozconfig file with the following:

# If ccache was installed via Homebrew:
export PATH="`brew --prefix ccache`/libexec:$PATH"

# Import the stock config for building the browser (Firefox)
. $topsrcdir/browser/config/mozconfig

. $topsrcdir/build/macosx/mozconfig.common

mk_add_options AUTOCONF=/usr/local/Cellar/autoconf213/2.13/bin/autoconf213

mk_add_options MOZ_MAKE_FLAGS="-s -j8"

# Define where build files should go. This places them in the directory
# "obj-ff-dbg" under the current source directory
# mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg

# Enable debug builds
# ac_add_options --enable-debug

# Turn off compiler optimization. This will make applications run slower,
# will allow you to debug the applications under a debugger, like GDB.
# ac_add_options --disable-optimize

ac_add_options --enable-application=browser
ac_add_options --enable-optimize
ac_add_options --enable-profiling
#ac_add_options --enable-debug
#ac_add_options --enable-trace-malloc
#mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@-debug


Run the following in the dir

./mach build

Wait a while...

./mach run -p development

Updated with changes? Run the following

./mach build browser

Running tests for the entire suite

./mach mochitest-devtools browser/devtools

Running tests for a particular patch

./mach mochitest-devtools browser/devtools/path/to/the/test_you_want_to_run.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.