Is it possible to cross compile node.js with v8 snapshots enabled?

时间:2015-07-28 23:49:13

标签: linux node.js arm cross-compiling v8

I'm currently cross compiling node.js for arm using the function activateManifestJson(aUrl, code, timeoutErr){ var error = ""; // RESTful request data var urlData = {param1: value1, param2: value2}; $.ajax({ type: 'GET', url: aUrl, async: true, data: urlData, jsonpCallback: 'jsoncallback', timeout: 20000, dataType: 'jsonp', /* this trigger the syntax error window by IE*/ contentType: "application/json; charset=utf-8", success: function(json) { if(json.hasError != null && json.hasError == "true"){ error = json.error; alert(error); }else{ //.... logic to output valid values // ******************************************* } // you forgot this closing brace // *********************************************** },//success error:function(x, tm, m) { alert(timeoutErr); } }); return error; } . I would like to use v8 snapshots to improve startup speed, and wonder if it's possible to cross compile node.js with snapshots enabled? I think I remember that v8 had some kind of simulator for that end...

1 个答案:

答案 0 :(得分:0)

现在似乎已经修复了node.js版本4,其中--without-snapshot即使在交叉编译时也能正常工作。