简体   繁体   English

如何在Windows上使用--harmony标志构建node.js

[英]How to build node.js with --harmony flag on windows

I would like to build 0.11.x version of node.js on Windows from sources with enabled --harmony flag. 我想从启用了--harmony标志的源代码在Windows上构建node.js的0.11.x版本。 Sometimes it's very useful like in testing. 有时它在测试中非常有用。

How I can configure v8-options during the build process? 如何在构建过程中配置v8选项? I build using this command: 我使用以下命令进行构建:

vcbuild.bat nosign release x64
 - Install python
 - Install Visual Studio (Desktop Express is ok)
 - For MSI
 - Install WIX (3.8 is ok) https://wix.codeplex.com/releases/view/115492
 - Install .NET 3.5

Within the folder with checked out node.js 0.11.x run: 在检出了node.js 0.11.x的文件夹中,运行:

- python configure --dest-cpu=x64 --v8-options=--harmony
- .\vcbuild.bat release nosign x64 noprojgen msi
- run msi package from Release folder

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM