Building Chromium with Goma
Configuring Chromium
Follow build instructions from here. Remember that you have depot tools already installed so you can skip this part. When asked to run gn
, run it as follows:
and add following gn args:
This will generate build files with Goma being used as the compiler tool.
Setting up Goma Client
Setup environment variables so that Goma client knows the location and configuration of the Goma server.
Logging in into Goma
Before you can use Goma you need to login into the server. You’ll have to login using the Gmail account you have whitelisted when running the server.
To login run:
and follow on screen directions to obtain the access code. When asked to login into a gmail account use the one you have whitelisted when running goma server. Paste the access code back to the terminal and you should see similar output:
Notice
You don't need to login every time you restart client/server. The client saves the obtained token on the host system so you can login only once and use the existing token until it expires.Starting Goma Client
Run Goma client:
The output should be similar to the following one:
You can point your browser to the URL returned by goma client. This is the client status page where you can track all client actions.
Building Chromium with Goma
To test goma run:
If everything went well your goma status page should list the job in the Finished Tasks
section with a RETRY
result (this is good - don’t worry about that). To see the cache in action run:
The finished section of the status page should list a new job - this time with CACHEHIT
status.