Hi,
I had to hack common.gypi to switch from /MT to /MD,
To do this, I changed this:
['OS=="win" and component=="shared_library"', {
'RuntimeLibrary': '2', #/MD
}, {
'RuntimeLibrary': '2', #/MT <-- was a different number
before
That seemed to work (not fully tested yet with a full build).
I have looked around for reasons why v8 is linking against /MT, I think it
is simply because you assume if its a static build, it should also link
against the static runtime library.
>From what I've read, this is wrong, and there should be an independent
option available for choosing the runtime library to use.
Example, C++ Boost has an option like this in their bjam build system.
... and I was unsuccessful at adding the /LTCG flag,
I tried this:
'VCLinkerTool': {
'LinkTimeCodeGeneration': '1', # ADDED: link-time code
generation
'LinkIncremental': '1',
'OptimizeReferences': '2',
'EnableCOMDATFolding': '2',
},
But that didn't seem to work for at least some of the projects.
Perhaps there can be some tweaks made to the gyp build system?
cheers,
Paul
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users