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 * [depot\_tools](http://dev.chromium.org/developers/how-tos/depottools). | 9 * [depot\_tools](http://dev.chromium.org/developers/how-tos/depottools). |
10 * Install Xcode's "Command Line Tools" via Xcode menu -> Preferences -> | 10 * Install Xcode's "Command Line Tools" via Xcode menu -> Preferences -> |
11 Downloads | 11 Downloads |
12 * The OSX 10.10 SDK. Run | 12 * The OSX 10.10 SDK. Run |
13 ```sh | 13 ```sh |
14 ls `xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs | 14 ls `xcode-select -p`/Platforms/MacOSX.platform/Developer/SDKs |
15 ``` | 15 ``` |
16 to check whether you have it. If you don't have it, you need to get one from | 16 to check whether you have it. If you don't have it, you need to get one from |
17 an install of Xcode 6, and place it in the above directory. | 17 an install of Xcode 6, and place it in the above directory. |
18 | 18 |
19 ## Getting the code | 19 ## Getting the code |
20 | 20 |
21 [Check out the source code](http://dev.chromium.org/developers/how-tos/get-the-c
ode) | 21 [Check out the source code](https://www.chromium.org/developers/how-tos/get-the-
code) |
22 using Git. | 22 using Git. |
23 | 23 |
24 Before checking out, go to the | 24 Before checking out, go to the |
25 [waterfall](http://build.chromium.org/buildbot/waterfall/) and check that the | 25 [waterfall](http://build.chromium.org/buildbot/waterfall/) and check that the |
26 source tree is open (to avoid pulling a broken tree). | 26 source tree is open (to avoid pulling a broken tree). |
27 | 27 |
28 The path to the build directory should not contain spaces (e.g. not | 28 The path to the build directory should not contain spaces (e.g. not |
29 `~/Mac OS X/chromium`), as this will cause the build to fail. This includes your | 29 `~/Mac OS X/chromium`), as this will cause the build to fail. This includes your |
30 drive name, the default "Macintosh HD2" for a second drive has a space. | 30 drive name, the default "Macintosh HD2" for a second drive has a space. |
31 | 31 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 be set in `/etc/sysctl.conf`: | 244 be set in `/etc/sysctl.conf`: |
245 | 245 |
246 echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf | 246 echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf |
247 | 247 |
248 Or edit the file directly. | 248 Or edit the file directly. |
249 | 249 |
250 If your `git --version` reports 2.6 or higher, the following may also improve | 250 If your `git --version` reports 2.6 or higher, the following may also improve |
251 performance of `git status`: | 251 performance of `git status`: |
252 | 252 |
253 git update-index --untracked-cache | 253 git update-index --untracked-cache |
OLD | NEW |