Author: [email protected]
Date: Tue Apr 21 00:10:34 2009
New Revision: 1747

Modified:
    wiki/BuildingOnWindows.wiki

Log:
Edited wiki page through web user interface.

Modified: wiki/BuildingOnWindows.wiki
==============================================================================
--- wiki/BuildingOnWindows.wiki (original)
+++ wiki/BuildingOnWindows.wiki Tue Apr 21 00:10:34 2009
@@ -24,6 +24,19 @@
  LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: virtual char const *  
__thiscall std::exception::what(void)const "  
(?w...@exception@std@@UBEPBDXZ) already defined in mksnapshot.obj
  }}}

+=== Selecting Visual Studio C++ Runtime Library ===
+The SCons build has an option to control which Visual Studio C++ Runtime  
Library to use when linking V8. The possible options are `static`  
(statically linked in to the V8 library) and `dynamic` (using the DLL  
version). The default is `static`. The following example uses the shared  
runtime library.
+{{{
+> scons msvcrt=shared
+}}}
+*NOTE:* The runtime library to use (static or shared) can be selected  
independently of the type selected for the V8 library itself (also static  
or shared).
+
+=== Controlling Link-time Code generation ===
+The SCons build option `msvcltcg` can be used to control whether Visual  
C++ is instructed to do link-time code generation or not. The default is  
`on` the it can be switched off using `off`.
+{{{
+> scons msvcltcg=off
+}}}
+
  === Using Visual Studio 2008 ===
  As SCons version 1.0.0 does not detect Visual Studio 2008, you will need  
to supply an additional `env` option to SCons. The `env` option is used to  
override the environment paths SCons is using. For Visual Studio 2008 it is  
required to override PATH, INCLUDE and LIB. The following example passes  
these paths for a Visual Studio 2008 installation assuming that the default  
installation directories have been used.

@@ -37,9 +50,13 @@

  === ===
  === Running tests on Windows ===
-When running the tests using `tools\test.py` on Windows SCons is used to  
build the tests written in C++. Therefore if using Visual Studio 2008 or  
Visual C++ Express 2008 the additional ´env´ option have to be passed. The  
script `tools\test.py` has an option `-S` to specify options which are  
passed to SCons. For Visual C++ Express 2008 it will look like this..
+When running the tests using `tools\test.py` on Windows SCons is used to  
build the tests written in C++. Therefore if using Visual Studio 2008 or  
Visual C++ Express 2008 the additional ´env´ option have to be passed. The  
script `tools\test.py` has an option `-S` to specify options which are  
passed to SCons. For Visual C++ Express 2008 it will look like this.

  ||`>tools\test.py -S env="INCLUDE:C:\Program Files\Microsoft  
SDKs\Windows\v6.0A\Include;C:\Program Files\Microsoft Visual Studio  
9.0\VC\include,LIB:C:\Program Files\Microsoft  
SDKs\Windows\v6.0A\Lib;C:\Program Files\Microsoft Visual Studio  
9.0\VC\lib"`||
+
+When running tests turning off link-time code generation will reduce link  
time significally. This is useful when running the tests repeatedly.
+
+||`>tools\test.py -S msvcltcg=off`||

  === ===
  === Building the `hello_world` sample on Windows ===

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to