| OLD | NEW |
| 1 **Build issues? File a bug at code.google.com/p/v8/issues or ask for help on v8-
users@googlegroups.com.** | 1 **Build issues? File a bug at code.google.com/p/v8/issues or ask for help on v8-
users@googlegroups.com.** |
| 2 | 2 |
| 3 # Building V8 | 3 # Building V8 |
| 4 | 4 |
| 5 V8 is built with the help of [GYP](http://code.google.com/p/gyp/). GYP is a meta
build system of sorts, as it generates build files for a number of other build
systems. How you build therefore depends on what "back-end" build system and com
piler you're using. | 5 V8 is built with the help of [GYP](http://code.google.com/p/gyp/). GYP is a meta
build system of sorts, as it generates build files for a number of other build
systems. How you build therefore depends on what "back-end" build system and com
piler you're using. |
| 6 The instructions below assume that you already have a [checkout of V8](using_git
.md) but haven't yet installed the build dependencies. | 6 The instructions below assume that you already have a [checkout of V8](using_git
.md) but haven't yet installed the build dependencies. |
| 7 | 7 |
| 8 If you intend to develop on V8, i.e., send patches and work with changelists, yo
u will need to install the dependencies as described [here](using_git.md). | 8 If you intend to develop on V8, i.e., send patches and work with changelists, yo
u will need to install the dependencies as described [here](using_git.md). |
| 9 | 9 |
| 10 | 10 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 xcodebuild -project build/all.xcodeproj -configuration Release | 150 xcodebuild -project build/all.xcodeproj -configuration Release |
| 151 xcodebuild -project build/all.xcodeproj | 151 xcodebuild -project build/all.xcodeproj |
| 152 ``` | 152 ``` |
| 153 | 153 |
| 154 Note: If you have configured your `GYP_GENERATORS` environment variable, either
unset it, or set it to `xcode` for this to work. | 154 Note: If you have configured your `GYP_GENERATORS` environment variable, either
unset it, or set it to `xcode` for this to work. |
| 155 | 155 |
| 156 | 156 |
| 157 #### Custom build settings | 157 #### Custom build settings |
| 158 | 158 |
| 159 You can export the `GYP_DEFINES` environment variable in your shell to configure
custom build options. The syntax is `GYP_DEFINES="-Dvariable1=value1 -Dvariable
2=value2"` and so on for as many variables as you wish. Possibly interesting opt
ions include: | 159 You can export the `GYP_DEFINES` environment variable in your shell to configure
custom build options. The syntax is `GYP_DEFINES="-Dvariable1=value1 -Dvariable
2=value2"` and so on for as many variables as you wish. Possibly interesting opt
ions include: |
| 160 |
| 160 * `-Dcomponent=shared_library` (see `library=shared` in the [GCC + make](#Opti
onal_parameters.md) section above) | 161 * `-Dcomponent=shared_library` (see `library=shared` in the [GCC + make](#Opti
onal_parameters.md) section above) |
| 161 * `-Dconsole=readline` (see `console=readline`) | 162 * `-Dconsole=readline` (see `console=readline`) |
| 162 * `-Dv8_enable_disassembler=1` (see `disassembler=on`) | 163 * `-Dv8_enable_disassembler=1` (see `disassembler=on`) |
| 163 * `-Dv8_use_snapshot='false'` (see `snapshot=off`) | 164 * `-Dv8_use_snapshot='false'` (see `snapshot=off`) |
| 164 * `-Dv8_enable_gdbjit=1` (see `gdbjit=on`) | 165 * `-Dv8_enable_gdbjit=1` (see `gdbjit=on`) |
| 165 * `-Dv8_use_liveobjectlist=true` (see `liveobjectlist=on`) | 166 * `-Dv8_use_liveobjectlist=true` (see `liveobjectlist=on`) |
| 166 | 167 |
| 167 | 168 |
| 168 ### Visual Studio | 169 ### Visual Studio |
| 169 | 170 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 ``` | 223 ``` |
| 223 | 224 |
| 224 | 225 |
| 225 ### MinGW | 226 ### MinGW |
| 226 | 227 |
| 227 Building on MinGW is not officially supported, but it is possible. You even have
two options: | 228 Building on MinGW is not officially supported, but it is possible. You even have
two options: |
| 228 | 229 |
| 229 #### Option 1: With Cygwin Installed | 230 #### Option 1: With Cygwin Installed |
| 230 | 231 |
| 231 Requirements: | 232 Requirements: |
| 233 |
| 232 * MinGW | 234 * MinGW |
| 233 * Cygwin, including Python | 235 * Cygwin, including Python |
| 234 * Python from www.python.org _(yes, you need two Python installations!)_ | 236 * Python from www.python.org _(yes, you need two Python installations!)_ |
| 235 | 237 |
| 236 Building: | 238 Building: |
| 239 |
| 237 1. Open a MinGW shell | 240 1. Open a MinGW shell |
| 238 1. `export PATH=$PATH:/c/cygwin/bin` _(or wherever you installed Cygwin)_ | 241 1. `export PATH=$PATH:/c/cygwin/bin` _(or wherever you installed Cygwin)_ |
| 239 1. `make ia32.release -j8` | 242 1. `make ia32.release -j8` |
| 240 | 243 |
| 241 Running tests: | 244 Running tests: |
| 245 |
| 242 1. Open a MinGW shell | 246 1. Open a MinGW shell |
| 243 1. `export PATH=/c/Python27:$PATH` _(or wherever you installed Python)_ | 247 1. `export PATH=/c/Python27:$PATH` _(or wherever you installed Python)_ |
| 244 1. `make ia32.release.check -j8` | 248 1. `make ia32.release.check -j8` |
| 245 | 249 |
| 246 #### Option 2: Without Cygwin, just MinGW | 250 #### Option 2: Without Cygwin, just MinGW |
| 247 | 251 |
| 248 Requirements: | 252 Requirements: |
| 253 |
| 249 * MinGW | 254 * MinGW |
| 250 * Python from www.python.org | 255 * Python from www.python.org |
| 251 | 256 |
| 252 Building and testing: | 257 Building and testing: |
| 258 |
| 253 1. Open a MinGW shell | 259 1. Open a MinGW shell |
| 254 1. `tools/mingw-generate-makefiles.sh` _(re-run this any time a `*`.gyp`*` fil
e changed, such as after updating your checkout)_ | 260 1. `tools/mingw-generate-makefiles.sh` _(re-run this any time a `*`.gyp`*` fil
e changed, such as after updating your checkout)_ |
| 255 1. `make ia32.release` _(unfortunately -jX doesn't seem to work here)_ | 261 1. `make ia32.release` _(unfortunately -jX doesn't seem to work here)_ |
| 256 1. `make ia32.release.check -j8` | 262 1. `make ia32.release.check -j8` |
| 257 | 263 |
| 258 | 264 |
| 259 # Final Note | 265 # Final Note |
| 260 <font color='darkred'><b>If you have problems or questions, please file bugs at
code.google.com/p/v8/issues or send mail to v8-users@googlegroups.com. Comments
on this page are likely to go unnoticed and unanswered.</b></font> | 266 <font color='darkred'><b>If you have problems or questions, please file bugs at
code.google.com/p/v8/issues or send mail to v8-users@googlegroups.com. Comments
on this page are likely to go unnoticed and unanswered.</b></font> |
| OLD | NEW |