DevTools/Hacking: Difference between revisions

Add section on artifact builds
(Group build sections thematically)
(Add section on artifact builds)
Line 57: Line 57:
   $ ./mach clobber
   $ ./mach clobber
   $ ./mach build
   $ ./mach build
== Artifact builds (or: building faster!) ==
If you are '''not''' going to modify any C/C++ code, you could use artifact builds. This method downloads prebuilt components, and then the build process becomes faster.
Essentially, add the following lines to your .mozconfig file:
  # Automatically download and use compiled C++ components:
  ac_add_options --enable-artifact-builds
 
  # Write build artifacts to:
  mk_add_options MOZ_OBJDIR=./objdir-frontend
And then you can follow the normal build process.
For more information on aspects such as technical limitations, read the [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Artifact_builds Artifact Builds] page.


= Configuring your dev profile =
= Configuring your dev profile =
Confirmed users
100

edits