Reputation: 1435
I built Chromium from the source code (ninja -C out/Debug chrome
) and make sure it works. After I executed:
git pull
gclient sync
ninja -C out/Debug chrome
The build system actually starts to building all the parts of the project again. Is it possible to rebuild only the changed parts of chromium?
Upvotes: 1
Views: 2158
Reputation: 4198
From the windows build instructions it lists this build parameter:
is_component_build = true
- this uses more, smaller DLLs, and incremental linking.
Execute:
gn args out/WhateverYouWant
Add
is_component_build = true
to the text file, save it, and close it.
For every build after the first it won't compile any components that you haven't changed.
Upvotes: 2
Reputation: 1747
Always do release build if you don't want to debug chrome browser.
Use ninja -C out/Release chrome
to perform a release build. Debug build takes time in linking.
git pull
updates your code and gclient sync
syncs or sets the HEAD of the repo to the Last Known Good Revision(LKGR). Hence, no. of changed files plus no. of files which were dependent on that would be recompiled again.
Upvotes: 2