Add instructions on creating smaller Linux builds
Updated Linux build instructions based on chromium-dev discussion. Change-Id: I6cbddb5e1bccf6bf982a009f92849ceb4cefee4d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3514630 Reviewed-by: Henrique Ferreiro <hferreiro@igalia.com> Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Cr-Commit-Position: refs/heads/main@{#980020}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
e3ca08b2fb
commit
be82320374
@ -242,6 +242,19 @@ hyperthreaded, 12 GB RAM)
|
|||||||
* Without tmpfs
|
* Without tmpfs
|
||||||
* 15m:40s
|
* 15m:40s
|
||||||
|
|
||||||
|
### Smaller builds
|
||||||
|
|
||||||
|
The Chrome binary contains embedded symbols by default. You can reduce its size
|
||||||
|
by using the Linux `strip` command to remove this debug information. You can
|
||||||
|
also reduce binary size by disabling debug mode, disabling dchecks, and turning
|
||||||
|
on all optimizations by enabling official build mode, with these GN args:
|
||||||
|
|
||||||
|
```
|
||||||
|
is_debug = false
|
||||||
|
dcheck_always_on = false
|
||||||
|
is_official_build = true
|
||||||
|
```
|
||||||
|
|
||||||
## Build Chromium
|
## Build Chromium
|
||||||
|
|
||||||
Build Chromium (the "chrome" target) with Ninja using the command:
|
Build Chromium (the "chrome" target) with Ninja using the command:
|
||||||
|
Reference in New Issue
Block a user