Skip to content

Instantly share code, notes, and snippets.

@jedp
Created May 19, 2014 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jedp/0c430b6f59c592937442 to your computer and use it in GitHub Desktop.
Save jedp/0c430b6f59c592937442 to your computer and use it in GitHub Desktop.
.mozconfig
. $topsrcdir/browser/config/mozconfig
# 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=../build_mc
# -s makes builds quieter by default
# -j4 allows 4 tasks to run in parallel. Set the number to be the amount of
# cores in your machine. 4 is a good number.
mk_add_options MOZ_MAKE_FLAGS="-s -j6"
mk_add_options AUTOCLOBBER=1
# Enable debug builds
ac_add_options --disable-crashreporter
ac_add_options --disable-optimize
ac_add_options --disable-static
ac_add_options --enable-debug
ac_add_options --enable-shared
ac_add_options --with-ccache
ac_add_options --enable-tests
ac_add_options --enable-warning-as-errors
ac_add_options --enable-application=browser
# 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
export CXXFLAGS="-DMOZ_ENABLE_JS_DUMP $EXTRA_INCLUDE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment