OLD | NEW |
1 # Tips for improving build speed on Linux | 1 # Tips for improving build speed on Linux |
2 | 2 |
3 This list is sorted such that the largest speedup is first; see | 3 This list is sorted such that the largest speedup is first; see |
4 [Linux build instructions](linux_build_instructions.md) for context and | 4 [Linux build instructions](linux_build_instructions.md) for context and |
5 [Faster Builds](common_build_tasks.md) for non-Linux-specific techniques. | 5 [Faster Builds](common_build_tasks.md) for non-Linux-specific techniques. |
6 | 6 |
7 [TOC] | 7 [TOC] |
8 | 8 |
9 ## Use goma | 9 ## Use goma |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 clang=0 | 39 clang=0 |
40 | 40 |
41 Icecc doesn't support clang yet. | 41 Icecc doesn't support clang yet. |
42 | 42 |
43 use_sysroot=0 | 43 use_sysroot=0 |
44 | 44 |
45 Icecc doesn't work with sysroot. | 45 Icecc doesn't work with sysroot. |
46 | 46 |
47 linux_use_bundled_gold=0 | 47 linux_use_bundled_gold=0 |
48 | 48 |
49 Using the system linker is necessary since a recent binutils upgrade. | 49 Using the system linker is necessary when using glibc 2.21 or newer. See |
| 50 [related bug](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808181). |
50 | 51 |
51 ## Build only specific targets | 52 ## Build only specific targets |
52 | 53 |
53 If you specify just the target(s) you want built, the build will only walk that | 54 If you specify just the target(s) you want built, the build will only walk that |
54 portion of the dependency graph: | 55 portion of the dependency graph: |
55 | 56 |
56 cd $CHROMIUM_ROOT/src | 57 cd $CHROMIUM_ROOT/src |
57 ninja -C out/Debug base_unittests | 58 ninja -C out/Debug base_unittests |
58 | 59 |
59 ## Linking | 60 ## Linking |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 or for a release build. | 159 or for a release build. |
159 *** | 160 *** |
160 | 161 |
161 Quick and dirty benchmark numbers on a HP Z600 (Intel core i7, 16 cores | 162 Quick and dirty benchmark numbers on a HP Z600 (Intel core i7, 16 cores |
162 hyperthreaded, 12 GB RAM) | 163 hyperthreaded, 12 GB RAM) |
163 | 164 |
164 * With tmpfs: | 165 * With tmpfs: |
165 * 12m:20s | 166 * 12m:20s |
166 * Without tmpfs | 167 * Without tmpfs |
167 * 15m:40s | 168 * 15m:40s |
OLD | NEW |