OLD | NEW |
1 # Mac Build Instructions | 1 # Mac Build Instructions |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 ## Prerequisites | 5 ## Prerequisites |
6 | 6 |
7 * A Mac running 10.9+. | 7 * A Mac running 10.9+. |
8 * [Xcode](https://developer.apple.com/xcode), 5+. | 8 * [Xcode](https://developer.apple.com/xcode), 5+. |
9 * Install | 9 * Install |
10 [gclient](http://dev.chromium.org/developers/how-tos/install-depot-tools), | 10 [gclient](http://dev.chromium.org/developers/how-tos/install-depot-tools), |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 ## Contributing | 130 ## Contributing |
131 | 131 |
132 Once you’re comfortable with building Chromium, check out | 132 Once you’re comfortable with building Chromium, check out |
133 [Contributing Code](http://dev.chromium.org/developers/contributing-code) for | 133 [Contributing Code](http://dev.chromium.org/developers/contributing-code) for |
134 information about writing code for Chromium and contributing it. | 134 information about writing code for Chromium and contributing it. |
135 | 135 |
136 ## Using Xcode-Ninja Hybrid | 136 ## Using Xcode-Ninja Hybrid |
137 | 137 |
138 While using Xcode is unsupported, GYP supports a hybrid approach of using ninja | 138 While using Xcode is unsupported, GYP supports a hybrid approach of using ninja |
139 for building, but Xcode for editing and driving compliation. Xcode can still be | 139 for building, but Xcode for editing and driving compilation. Xcode can still be |
140 slow, but it runs fairly well even **with indexing enabled**. | 140 slow, but it runs fairly well even **with indexing enabled**. |
141 | 141 |
142 With hybrid builds, compilation is still handled by ninja, and can be run by the | 142 With hybrid builds, compilation is still handled by ninja, and can be run by the |
143 command line (e.g. ninja -C out/Debug chrome) or by choosing the chrome target | 143 command line (e.g. ninja -C out/Debug chrome) or by choosing the chrome target |
144 in the hybrid workspace and choosing build. | 144 in the hybrid workspace and choosing build. |
145 | 145 |
146 To use Xcode-Ninja Hybrid, set `GYP_GENERATORS=ninja,xcode-ninja`. | 146 To use Xcode-Ninja Hybrid, set `GYP_GENERATORS=ninja,xcode-ninja`. |
147 | 147 |
148 Due to the way Xcode parses ninja output paths, it's also necessary to change | 148 Due to the way Xcode parses ninja output paths, it's also necessary to change |
149 the main gyp location to anything two directories deep. Otherwise Xcode build | 149 the main gyp location to anything two directories deep. Otherwise Xcode build |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 be set in `/etc/sysctl.conf`: | 226 be set in `/etc/sysctl.conf`: |
227 | 227 |
228 echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf | 228 echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf |
229 | 229 |
230 Or edit the file directly. | 230 Or edit the file directly. |
231 | 231 |
232 If your `git --version` reports 2.6 or higher, the following may also improve | 232 If your `git --version` reports 2.6 or higher, the following may also improve |
233 performance of `git status`: | 233 performance of `git status`: |
234 | 234 |
235 git update-index --untracked-cache | 235 git update-index --untracked-cache |
OLD | NEW |