Skip to content

Instantly share code, notes, and snippets.

@astleychen
Last active January 5, 2018 02:25
Show Gist options
  • Save astleychen/735c6c589dc6ebf982b3022244c2c30a to your computer and use it in GitHub Desktop.
Save astleychen/735c6c589dc6ebf982b3022244c2c30a to your computer and use it in GitHub Desktop.
A Firefox desktop build profile
# 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-desktop
# -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 -j8"
mk_add_options AUTOCLOBBER=1
# Enable ccache
ac_add_options --with-ccache
# Enable debug builds
ac_add_options --enable-debug
# Disable optimization
ac_add_options --disable-optimize
# Gecko Profiler
ac_add_options --enable-profiling
# Treat warnings as errors (modulo ALLOW_COMPILER_WARNINGS).
#ac_add_options --enable-warnings-as-errors
# Enable tests
ac_add_options --enable-tests
# Default application to be built
ac_add_options --enable-application=browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment