blob: 1e6628586f923292f201f256c03bddb909333d22 [file] [log] [blame] [view]
dpranke1a70d0c2016-12-01 02:42:291# Checking out and Building Chromium for Windows
2
Bruce Dawson4d1de592017-09-08 00:24:003There are instructions for other platforms linked from the
dpranke1a70d0c2016-12-01 02:42:294[get the code](get_the_code.md) page.
tfarina502f3882016-03-23 12:48:105
dpranke1a70d0c2016-12-01 02:42:296## Instructions for Google Employees
7
8Are you a Google employee? See
scottmg292538ae2017-01-12 00:10:559[go/building-chrome-win](https://goto.google.com/building-chrome-win) instead.
dpranke0ae7cad2016-11-30 07:47:5810
11[TOC]
12
13## System requirements
14
15* A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly
16 recommended.
dpranke4b470c5b2017-01-19 17:38:0417* At least 100GB of free disk space on an NTFS-formatted hard drive. FAT32
18 will not work, as some of the Git packfiles are larger than 4GB.
Bruce Dawson97367b72017-10-18 00:47:4919* An appropriate version of Visual Studio, as described below.
dpranke0ae7cad2016-11-30 07:47:5820* Windows 7 or newer.
brettwc25693b32016-05-26 01:11:5221
tfarina502f3882016-03-23 12:48:1022## Setting up Windows
23
dpranke0ae7cad2016-11-30 07:47:5824### Visual Studio
tfarina502f3882016-03-23 12:48:1025
Aaron Gable7a173b7a2020-01-02 17:13:2426Chromium requires Visual Studio 2017 (>=15.7.2) to build, but VS2019 (>=16.0.0)
27is preferred. Visual Studio can also be used to debug Chromium, and VS2019 is
Bruce Dawsonfa551102019-06-11 23:50:0428preferred for this as it handles Chromium's large debug information much better.
Raul Tambre1bb5c1a2018-12-29 00:57:1229The clang-cl compiler is used but Visual Studio's header files, libraries, and
30some tools are required. Visual Studio Community Edition should work if its
31license is appropriate for you. You must install the "Desktop development with
32C++" component and the "MFC/ATL support" sub-components. This can be done from
33the command line by passing these arguments to the Visual Studio installer (see
34below for ARM64 instructions):
Bruce Dawson1c0979a62017-09-13 17:47:2135```shell
Bruce Dawsone42d7642018-12-10 23:50:0036$ PATH_TO_INSTALLER.EXE ^
37--add Microsoft.VisualStudio.Workload.NativeDesktop ^
38--add Microsoft.VisualStudio.Component.VC.ATLMFC ^
39--includeRecommended
Bruce Dawson1c0979a62017-09-13 17:47:2140```
pwnall43b43ba2016-08-22 19:29:2941
Bruce Dawsone42d7642018-12-10 23:50:0042If you want to build for ARM64 Win32 then some extra arguments are needed. The
43full set for that case is:
44```shell
45$ PATH_TO_INSTALLER.EXE ^
46--add Microsoft.VisualStudio.Workload.NativeDesktop ^
47--add Microsoft.VisualStudio.Component.VC.ATLMFC ^
48--add Microsoft.VisualStudio.Component.VC.Tools.ARM64 ^
49--add Microsoft.VisualStudio.Component.VC.MFC.ARM64 ^
50--includeRecommended
51```
52
Nico Weberd9919882019-07-08 11:12:4153You must have the version 10.0.18362 or higher Windows 10 SDK installed. This
Bruce Dawsone42d7642018-12-10 23:50:0054can be installed separately or by checking the appropriate box in the Visual
55Studio Installer.
Bruce Dawsone9f20fff2018-03-03 01:58:3856
57The SDK Debugging Tools must also be installed. If the Windows 10 SDK was
58installed via the Visual Studio installer, then they can be installed by going
59to: Control Panel → Programs → Programs and Features → Select the "Windows
60Software Development Kit" → Change → Change → Check "Debugging Tools For
61Windows" → Change. Or, you can download the standalone SDK installer and use it
62to install the Debugging Tools.
Robert Sesekc8ffa1b2017-08-04 19:55:2263
dpranke0ae7cad2016-11-30 07:47:5864## Install `depot_tools`
tfarina502f3882016-03-23 12:48:1065
dpranke1a70d0c2016-12-01 02:42:2966Download the [depot_tools bundle](https://storage.googleapis.com/chrome-infra/depot_tools.zip)
dpranke0ae7cad2016-11-30 07:47:5867and extract it somewhere.
tfarina502f3882016-03-23 12:48:1068
dpranke0ae7cad2016-11-30 07:47:5869*** note
70**Warning:** **DO NOT** use drag-n-drop or copy-n-paste extract from Explorer,
71this will not extract the hidden “.git” folder which is necessary for
Bruce Dawson4d1de592017-09-08 00:24:0072depot_tools to autoupdate itself. You can use “Extract all…” from the
dpranke0ae7cad2016-11-30 07:47:5873context menu though.
74***
tfarina502f3882016-03-23 12:48:1075
Bruce Dawson4d1de592017-09-08 00:24:0076Add depot_tools to the start of your PATH (must be ahead of any installs of
dpranke4b470c5b2017-01-19 17:38:0477Python). Assuming you unzipped the bundle to C:\src\depot_tools, open:
tfarina502f3882016-03-23 12:48:1078
dpranke0ae7cad2016-11-30 07:47:5879Control Panel → System and Security → System → Advanced system settings
tfarina502f3882016-03-23 12:48:1080
dpranke4b470c5b2017-01-19 17:38:0481If you have Administrator access, Modify the PATH system variable and
82put `C:\src\depot_tools` at the front (or at least in front of any directory
83that might already have a copy of Python or Git).
tfarina502f3882016-03-23 12:48:1084
dpranke4b470c5b2017-01-19 17:38:0485If you don't have Administrator access, you can add a user-level PATH
86environment variable and put `C:\src\depot_tools` at the front, but
87if your system PATH has a Python in it, you will be out of luck.
dpranke0ae7cad2016-11-30 07:47:5888
89Also, add a DEPOT_TOOLS_WIN_TOOLCHAIN system variable in the same way, and set
90it to 0. This tells depot_tools to use your locally installed version of Visual
Aaron Gabledad9e0f2020-01-09 19:38:5291Studio (by default, depot_tools will try to use a google-internal version).
dpranke0ae7cad2016-11-30 07:47:5892
93From a cmd.exe shell, run the command gclient (without arguments). On first
94run, gclient will install all the Windows-specific bits needed to work with
95the code, including msysgit and python.
96
97* If you run gclient from a non-cmd shell (e.g., cygwin, PowerShell),
98 it may appear to run properly, but msysgit, python, and other tools
99 may not get installed correctly.
100* If you see strange errors with the file system on the first run of gclient,
101 you may want to [disable Windows Indexing](http://tortoisesvn.tigris.org/faq.html#cantmove2).
102
Bruce Dawson4d1de592017-09-08 00:24:00103After running gclient open a command prompt and type `where python` and
104confirm that the depot_tools `python.bat` comes ahead of any copies of
105python.exe. Failing to ensure this can lead to overbuilding when
dpranke0ae7cad2016-11-30 07:47:58106using gn - see [crbug.com/611087](https://crbug.com/611087).
107
108## Get the code
109
Leonard Mosescu718c9ac2017-06-20 18:06:32110First, configure Git:
111
112```shell
113$ git config --global user.name "My Name"
114$ git config --global user.email "[email protected]"
115$ git config --global core.autocrlf false
116$ git config --global core.filemode false
117$ git config --global branch.autosetuprebase always
118```
119
sdy93387fa2016-12-01 01:03:44120Create a `chromium` directory for the checkout and change to it (you can call
dpranke0ae7cad2016-11-30 07:47:58121this whatever you like and put it wherever you like, as
122long as the full path has no spaces):
dpranke0ae7cad2016-11-30 07:47:58123
sdy93387fa2016-12-01 01:03:44124```shell
125$ mkdir chromium && cd chromium
126```
127
128Run the `fetch` tool from `depot_tools` to check out the code and its
dpranke0ae7cad2016-11-30 07:47:58129dependencies.
130
sdy93387fa2016-12-01 01:03:44131```shell
xiaoyin.l802e4b3e2016-12-04 22:17:30132$ fetch chromium
sdy93387fa2016-12-01 01:03:44133```
dpranke0ae7cad2016-11-30 07:47:58134
135If you don't want the full repo history, you can save a lot of time by
sdy93387fa2016-12-01 01:03:44136adding the `--no-history` flag to `fetch`.
dpranke0ae7cad2016-11-30 07:47:58137
sdy93387fa2016-12-01 01:03:44138Expect the command to take 30 minutes on even a fast connection, and many
139hours on slower ones.
dpranke0ae7cad2016-11-30 07:47:58140
sdy93387fa2016-12-01 01:03:44141When `fetch` completes, it will have created a hidden `.gclient` file and a
142directory called `src` in the working directory. The remaining instructions
143assume you have switched to the `src` directory:
dpranke0ae7cad2016-11-30 07:47:58144
sdy93387fa2016-12-01 01:03:44145```shell
146$ cd src
147```
dpranke0ae7cad2016-11-30 07:47:58148
sdy93387fa2016-12-01 01:03:44149*Optional*: You can also [install API
150keys](https://www.chromium.org/developers/how-tos/api-keys) if you want your
151build to talk to some Google services, but this is not necessary for most
152development and testing purposes.
dpranke0ae7cad2016-11-30 07:47:58153
dpranke1a70d0c2016-12-01 02:42:29154## Setting up the build
dpranke0ae7cad2016-11-30 07:47:58155
Tom Bridgwatereef401542018-08-17 00:54:43156Chromium uses [Ninja](https://ninja-build.org) as its main build tool along with
157a tool called [GN](https://gn.googlesource.com/gn/+/master/docs/quick_start.md)
158to generate `.ninja` files. You can create any number of *build directories*
159with different configurations. To create a build directory:
dpranke0ae7cad2016-11-30 07:47:58160
sdy93387fa2016-12-01 01:03:44161```shell
162$ gn gen out/Default
163```
dpranke0ae7cad2016-11-30 07:47:58164
sdy93387fa2016-12-01 01:03:44165* You only have to run this once for each new build directory, Ninja will
166 update the build files as needed.
167* You can replace `Default` with another name, but
168 it should be a subdirectory of `out`.
Aaron Gabledad9e0f2020-01-09 19:38:52169* For other build arguments, including release settings or using an alternate
170 version of Visual Studio, see [GN build
sdy93387fa2016-12-01 01:03:44171 configuration](https://www.chromium.org/developers/gn-build-configuration).
dpranke0ae7cad2016-11-30 07:47:58172 The default will be a debug component build matching the current host
173 operating system and CPU.
Tom Bridgwatereef401542018-08-17 00:54:43174* For more info on GN, run `gn help` on the command line or read the [quick
175 start guide](https://gn.googlesource.com/gn/+/master/docs/quick_start.md).
dpranke0ae7cad2016-11-30 07:47:58176
177### Using the Visual Studio IDE
tfarina502f3882016-03-23 12:48:10178
brettwc25693b32016-05-26 01:11:52179If you want to use the Visual Studio IDE, use the `--ide` command line
180argument to `gn gen` when you generate your output directory (as described on
xiaoyin.l1003c0b2016-12-06 02:51:17181the [get the code](https://dev.chromium.org/developers/how-tos/get-the-code)
brettwc25693b32016-05-26 01:11:52182page):
tfarina502f3882016-03-23 12:48:10183
dpranke1a70d0c2016-12-01 02:42:29184```shell
185$ gn gen --ide=vs out\Default
186$ devenv out\Default\all.sln
tfarina502f3882016-03-23 12:48:10187```
188
brettwc25693b32016-05-26 01:11:52189GN will produce a file `all.sln` in your build directory. It will internally
190use Ninja to compile while still allowing most IDE functions to work (there is
191no native Visual Studio compilation mode). If you manually run "gen" again you
192will need to resupply this argument, but normally GN will keep the build and
thakis3e861de2016-06-14 14:24:01193IDE files up to date automatically when you build.
tfarina502f3882016-03-23 12:48:10194
brettwc25693b32016-05-26 01:11:52195The generated solution will contain several thousand projects and will be very
196slow to load. Use the `--filters` argument to restrict generating project files
James Darpiniandde42b52018-04-05 23:06:56197for only the code you're interested in. Although this will also limit what
198files appear in the project explorer, debugging will still work and you can
199set breakpoints in files that you open manually. A minimal solution that will
200let you compile and run Chrome in the IDE but will not show any source files
201is:
brettwc25693b32016-05-26 01:11:52202
dpranke1a70d0c2016-12-01 02:42:29203```
James Darpiniandde42b52018-04-05 23:06:56204$ gn gen --ide=vs --filters=//chrome --no-deps out\Default
dpranke1a70d0c2016-12-01 02:42:29205```
brettwc25693b32016-05-26 01:11:52206
James Darpiniandde42b52018-04-05 23:06:56207You can selectively add other directories you care about to the filter like so:
208`--filters=//chrome;//third_party/WebKit/*;//gpu/*`.
209
brettwc25693b32016-05-26 01:11:52210There are other options for controlling how the solution is generated, run `gn
211help gen` for the current documentation.
212
James Darpiniandde42b52018-04-05 23:06:56213By default when you start debugging in Visual Studio the debugger will only
214attach to the main browser process. To debug all of Chrome, install
215[Microsoft's Child Process Debugging Power Tool](https://blogs.msdn.microsoft.com/devops/2014/11/24/introducing-the-child-process-debugging-power-tool/).
216You will also need to run Visual Studio as administrator, or it will silently
217fail to attach to some of Chrome's child processes.
218
219It is also possible to debug and develop Chrome in Visual Studio without a
220solution file. Simply "open" your chrome.exe binary with
221`File->Open->Project/Solution`, or from a Visual Studio command prompt like
222so: `devenv /debugexe out\Debug\chrome.exe <your arguments>`. Many of Visual
223Studio's code editing features will not work in this configuration, but by
224installing the [VsChromium Visual Studio Extension](https://chromium.github.io/vs-chromium/)
225you can get the source code to appear in the solution explorer window along
226with other useful features such as code search.
227
dpranke0ae7cad2016-11-30 07:47:58228### Faster builds
tfarina502f3882016-03-23 12:48:10229
dpranke0ae7cad2016-11-30 07:47:58230* Reduce file system overhead by excluding build directories from
231 antivirus and indexing software.
232* Store the build tree on a fast disk (preferably SSD).
brucedawsoncfc7fd52017-07-06 18:41:01233* The more cores the better (20+ is not excessive) and lots of RAM is needed
234(64 GB is not excessive).
tfarina502f3882016-03-23 12:48:10235
brucedawsoncfc7fd52017-07-06 18:41:01236There are some gn flags that can improve build speeds. You can specify these
237in the editor that appears when you create your output directory
238(`gn args out/Default`) or on the gn gen command line
239(`gn gen out/Default --args="is_component_build = true is_debug = true"`).
240Some helpful settings to consider using include:
241* `is_component_build = true` - this uses more, smaller DLLs, and incremental
242linking.
Bruce Dawsonfcd3deb12017-07-28 17:12:20243* `enable_nacl = false` - this disables Native Client which is usually not
244needed for local builds.
brucedawsoncfc7fd52017-07-06 18:41:01245* `target_cpu = "x86"` - x86 builds are slightly faster than x64 builds and
246support incremental linking for more targets. Note that if you set this but
Bruce Dawsonfcd3deb12017-07-28 17:12:20247don't' set enable_nacl = false then build times may get worse.
James Cook26699a92019-03-12 22:23:10248* `blink_symbol_level = 0` - turn off source-level debugging for
brucedawsoncfc7fd52017-07-06 18:41:01249blink to reduce build times, appropriate if you don't plan to debug blink.
brucedawsoncfc7fd52017-07-06 18:41:01250
Bruce Dawson817f47fb2020-05-01 22:29:08251In order to speed up linking you can set `symbol_level = 1` or
252`symbol_level = 0` - these options reduce the work the compiler and linker have
253to do. With `symbol_level = 1` the compiler emits file name and line number
254information so you can still do source-level debugging but there will be no
255local variable or type information. With `symbol_level = 0` there is no
256source-level debugging but call stacks still have function names. Changing
257`symbol_level` requires recompiling everything.
brucedawsoncfc7fd52017-07-06 18:41:01258
Bruce Dawsone9f20fff2018-03-03 01:58:38259In addition, Google employees should use goma, a distributed compilation system.
260Detailed information is available internally but the relevant gn arg is:
261* `use_goma = true`
brucedawsoncfc7fd52017-07-06 18:41:01262
263To get any benefit from goma it is important to pass a large -j value to ninja.
Bruce Dawsone9f20fff2018-03-03 01:58:38264A good default is 10\*numCores to 20\*numCores. If you run autoninja then it
265will automatically pass an appropriate -j value to ninja for goma or not.
266
267```shell
268$ autoninja -C out\Default chrome
269```
brucedawsoncfc7fd52017-07-06 18:41:01270
271When invoking ninja specify 'chrome' as the target to avoid building all test
272binaries as well.
273
274Still, builds will take many hours on many machines.
dpranke0ae7cad2016-11-30 07:47:58275
Bruce Dawsone9f20fff2018-03-03 01:58:38276### Why is my build slow?
277
278Many things can make builds slow, with Windows Defender slowing process startups
279being a frequent culprit. Have you ensured that the entire Chromium src
Bruce Dawson0bbe2d42018-03-06 19:45:55280directory is excluded from antivirus scanning (on Google machines this means
Bruce Dawsone9f20fff2018-03-03 01:58:38281putting it in a ``src`` directory in the root of a drive)? Have you tried the
282different settings listed above, including different link settings and -j
283values? Have you asked on the chromium-dev mailing list to see if your build is
284slower than expected for your machine's specifications?
285
Bruce Dawson89390172019-05-08 09:51:18286The next step is to gather some data. If you set the ``NINJA_SUMMARIZE_BUILD``
Bruce Dawsonb9988e92019-09-16 17:01:10287environment variable to 1 then ``autoninja`` will do three things. First, it
288will set the [NINJA_STATUS](https://ninja-build.org/manual.html#_environment_variables)
Bruce Dawson89390172019-05-08 09:51:18289environment variable so that ninja will print additional information while
290building Chrome. It will show how many build processes are running at any given
291time, how many build steps have completed, how many build steps have completed
292per second, and how long the build has been running, as shown here:
Bruce Dawsone9f20fff2018-03-03 01:58:38293
294```shell
Bruce Dawson89390172019-05-08 09:51:18295$ set NINJA_SUMMARIZE_BUILD=1
Bruce Dawsone9f20fff2018-03-03 01:58:38296$ autoninja -C out\Default base
297ninja: Entering directory `out\Default'
298[1 processes, 86/86 @ 2.7/s : 31.785s ] LINK(DLL) base.dll base.dll.lib base.dll.pdb
299```
300
Bruce Dawson89390172019-05-08 09:51:18301This makes slow process creation immediately obvious and lets you tell quickly
302if a build is running more slowly than normal.
303
304In addition, setting ``NINJA_SUMMARIZE_BUILD=1`` tells ``autoninja`` to print a
305build performance summary when the build completes, showing the slowest build
306steps and slowest build-step types, as shown here:
Bruce Dawsone9f20fff2018-03-03 01:58:38307
308```shell
309$ set NINJA_SUMMARIZE_BUILD=1
310$ autoninja -C out\Default base
Bruce Dawson2721f0b2019-11-08 18:41:27311Longest build steps:
312 0.1 weighted s to build obj/base/base/trace_log.obj (6.7 s elapsed time)
313 0.2 weighted s to build nasm.exe, nasm.exe.pdb (0.2 s elapsed time)
314 0.3 weighted s to build obj/base/base/win_util.obj (12.4 s elapsed time)
315 1.2 weighted s to build base.dll, base.dll.lib (1.2 s elapsed time)
316Time by build-step type:
317 0.0 s weighted time to generate 6 .lib files (0.3 s elapsed time sum)
318 0.1 s weighted time to generate 25 .stamp files (1.2 s elapsed time sum)
319 0.2 s weighted time to generate 20 .o files (2.8 s elapsed time sum)
320 1.7 s weighted time to generate 4 PEFile (linking) files (2.0 s elapsed
321time sum)
322 23.9 s weighted time to generate 770 .obj files (974.8 s elapsed time sum)
32326.1 s weighted time (982.9 s elapsed time sum, 37.7x parallelism)
324839 build steps completed, average of 32.17/s
Bruce Dawsone9f20fff2018-03-03 01:58:38325```
326
Bruce Dawson2721f0b2019-11-08 18:41:27327The "weighted" time is the elapsed time of each build step divided by the number
328of tasks that were running in parallel. This makes it an excellent approximation
329of how "important" a slow step was. A link that is entirely or mostly serialized
330will have a weighted time that is the same or similar to its elapsed time. A
331compile that runs in parallel with 999 other compiles will have a weighted time
332that is tiny.
333
Bruce Dawson0bbe2d42018-03-06 19:45:55334You can also generate these reports by manually running the script after a build:
335
336```shell
337$ python depot_tools\post_build_ninja_summary.py -C out\Default
338```
339
Bruce Dawsonb9988e92019-09-16 17:01:10340Finally, setting ``NINJA_SUMMARIZE_BUILD=1`` tells autoninja to tell Ninja to
341report on its own overhead by passing "-d stats". This can be helpful if, for
342instance, process creation (which shows up in the StartEdge metric) is making
343builds slow, perhaps due to antivirus interference due to clang-cl not being in
344an excluded directory:
Bruce Dawsone9f20fff2018-03-03 01:58:38345
346```shell
Bruce Dawsonb9988e92019-09-16 17:01:10347$ set NINJA_SUMMARIZE_BUILD=1
348$ autoninja -C out\Default base
349"c:\src\depot_tools\ninja.exe" -C out\Default base -j 10 -d stats
Bruce Dawsone9f20fff2018-03-03 01:58:38350metric count avg (us) total (ms)
351.ninja parse 3555 1539.4 5472.6
352canonicalize str 1383032 0.0 12.7
353canonicalize path 1402349 0.0 11.2
354lookup node 1398245 0.0 8.1
355.ninja_log load 2 118.0 0.2
356.ninja_deps load 2 67.5 0.1
357node stat 2516 29.6 74.4
358depfile load 2 1132.0 2.3
359StartEdge 88 3508.1 308.7
360FinishCommand 87 1670.9 145.4
361CLParser::Parse 45 1889.1 85.0
362```
363
Bruce Dawsonb9988e92019-09-16 17:01:10364You can also get a visual report of the build performance with
365[ninjatracing](https://github.com/nico/ninjatracing). This converts the
366.ninja_log file into a .json file which can be loaded into chrome://tracing:
367
368```shell
369$ python ninjatracing out\Default\.ninja_log >build.json
370```
371
dpranke0ae7cad2016-11-30 07:47:58372## Build Chromium
373
Max Morozf5b31fcd2018-08-10 21:55:48374Build Chromium (the "chrome" target) with Ninja using the command:
dpranke0ae7cad2016-11-30 07:47:58375
dpranke1a70d0c2016-12-01 02:42:29376```shell
Max Morozf5b31fcd2018-08-10 21:55:48377$ autoninja -C out\Default chrome
dpranke1a70d0c2016-12-01 02:42:29378```
dpranke0ae7cad2016-11-30 07:47:58379
Max Morozf5b31fcd2018-08-10 21:55:48380`autoninja` is a wrapper that automatically provides optimal values for the
381arguments passed to `ninja`.
382
dpranke0ae7cad2016-11-30 07:47:58383You can get a list of all of the other build targets from GN by running
384`gn ls out/Default` from the command line. To compile one, pass to Ninja
385the GN label with no preceding "//" (so for `//chrome/test:unit_tests`
386use ninja -C out/Default chrome/test:unit_tests`).
387
388## Run Chromium
389
390Once it is built, you can simply run the browser:
391
dpranke1a70d0c2016-12-01 02:42:29392```shell
393$ out\Default\chrome.exe
394```
395
396(The ".exe" suffix in the command is actually optional).
dpranke0ae7cad2016-11-30 07:47:58397
398## Running test targets
399
400You can run the tests in the same way. You can also limit which tests are
401run using the `--gtest_filter` arg, e.g.:
402
dpranke1a70d0c2016-12-01 02:42:29403```shell
404$ out\Default\unit_tests.exe --gtest_filter="PushClientTest.*"
405```
dpranke0ae7cad2016-11-30 07:47:58406
407You can find out more about GoogleTest at its
408[GitHub page](https://github.com/google/googletest).
409
410## Update your checkout
411
412To update an existing checkout, you can run
413
dpranke1a70d0c2016-12-01 02:42:29414```shell
415$ git rebase-update
416$ gclient sync
417```
dpranke0ae7cad2016-11-30 07:47:58418
419The first command updates the primary Chromium source repository and rebases
420any of your local branches on top of tip-of-tree (aka the Git branch `origin/master`).
Bruce Dawson4d1de592017-09-08 00:24:00421If you don't want to use this script, you can also just use `git pull` or
dpranke0ae7cad2016-11-30 07:47:58422other common Git commands to update the repo.
423
424The second command syncs the subrepositories to the appropriate versions and
425re-runs the hooks as needed.