Commit 118d768f by Adeel

Binary: Removes v8 version from the dir name.

parent 03bd9d01
......@@ -8,8 +8,7 @@ var fs = require('fs'),
*/
function getBinding() {
var v8 = 'v8-' + /[0-9]+\.[0-9]+/.exec(process.versions.v8)[0];
var name = process.platform + '-' + process.arch + '-' + v8;
var name = process.platform + '-' + process.arch;
var candidates = [
path.join(__dirname, '..', 'build', 'Release', 'binding.node'),
path.join(__dirname, '..', 'build', 'Debug', 'binding.node'),
......
......@@ -82,8 +82,7 @@ function build(options) {
function parseArgs(args) {
var options = {
arch: process.arch,
platform: process.platform,
v8: /[0-9]+\.[0-9]+/.exec(process.versions.v8)[0]
platform: process.platform
};
options.args = args.filter(function(arg) {
......@@ -110,10 +109,7 @@ function parseArgs(args) {
*/
function testBinary(options) {
options.bin = [
options.platform + '-' + options.arch,
'-v8-' + options.v8
].join('');
options.bin = options.platform + '-' + options.arch;
if (options.force || process.env.SASS_FORCE_BUILD) {
return build(options);
......
......@@ -44,8 +44,7 @@ function download(url, dest, cb) {
*/
function exists() {
var v8 = 'v8-' + /[0-9]+\.[0-9]+/.exec(process.versions.v8)[0];
var name = process.platform + '-' + process.arch + '-' + v8;
var name = process.platform + '-' + process.arch;
fs.exists(path.join(__dirname, '..', 'vendor', name), function (exists) {
if (exists) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment