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 * https://developer.apple.com/xcode, 5+ | 8 * 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 When these tests are built, you will find them in the `out/{Debug|Release}` | 104 When these tests are built, you will find them in the `out/{Debug|Release}` |
105 directory. You can run them from the command line: | 105 directory. You can run them from the command line: |
106 | 106 |
107 ~/chromium/src/out/Release/unit_tests | 107 ~/chromium/src/out/Release/unit_tests |
108 | 108 |
109 | 109 |
110 ## Coding | 110 ## Coding |
111 | 111 |
112 According to the | 112 According to the |
113 [Chromium style guide](http://dev.chromium.org/developers/coding-style) code is | 113 [Chromium style guide](http://dev.chromium.org/developers/coding-style) code is |
114 [not allowed to have whitespace on the ends of lines](http://google-styleguide.g
ooglecode.com/svn/trunk/cppguide.xml#Horizontal_Whitespace). | 114 [not allowed to have whitespace on the ends of lines](https://google.github.io/s
tyleguide/cppguide.html#Horizontal_Whitespace). |
115 If you edit in Xcode, know that it loves adding whitespace to the ends of lines | 115 If you edit in Xcode, know that it loves adding whitespace to the ends of lines |
116 which can make editing in Xcode more painful than it should be. The | 116 which can make editing in Xcode more painful than it should be. The |
117 [GTM Xcode Plugin](http://code.google.com/p/google-toolbox-for-mac/downloads/lis
t) | 117 [GTM Xcode Plugin](http://code.google.com/p/google-toolbox-for-mac/downloads/lis
t) |
118 adds a preference panel to Xcode that allows you to strip whitespace off of the | 118 adds a preference panel to Xcode that allows you to strip whitespace off of the |
119 ends of lines on save. Documentation on how to install it is | 119 ends of lines on save. Documentation on how to install it is |
120 [here](http://code.google.com/p/google-toolbox-for-mac/wiki/GTMXcodePlugin). | 120 [here](http://code.google.com/p/google-toolbox-for-mac/wiki/GTMXcodePlugin). |
121 | 121 |
122 ## Debugging | 122 ## Debugging |
123 | 123 |
124 Good debugging tips can be found | 124 Good debugging tips can be found |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 be set in `/etc/sysctl.conf`: | 227 be set in `/etc/sysctl.conf`: |
228 | 228 |
229 echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf | 229 echo kern.maxvnodes=$((512*1024)) | sudo tee -a /etc/sysctl.conf |
230 | 230 |
231 Or edit the file directly. | 231 Or edit the file directly. |
232 | 232 |
233 If your `git --version` reports 2.6 or higher, the following may also improve | 233 If your `git --version` reports 2.6 or higher, the following may also improve |
234 performance of `git status`: | 234 performance of `git status`: |
235 | 235 |
236 git update-index --untracked-cache | 236 git update-index --untracked-cache |
OLD | NEW |