Skip to content

Commit

Permalink
Use a platform-specific dynamic object extension
Browse files Browse the repository at this point in the history
This should work everywhere except AIX.
  • Loading branch information
allenluce committed Apr 26, 2018
1 parent d399a1e commit 76bb9b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ var versioning = require('../lib/util/versioning.js');
var tar = require('tar');

var localVer = [versioning.get_runtime_abi('node'), process.platform, process.arch].join('-');
var SOEXT = process.platform === 'darwin' ? 'dylib': 'so';

// The list of different sample apps that we use to test
var apps = [
{
Expand All @@ -37,7 +39,7 @@ var apps = [
{
'name': 'app4',
'args': '',
'files': [path.join(localVer, 'app4.node'), path.join(localVer, 'lib.target', 'mylib.dylib')]
'files': [path.join(localVer, 'app4.node'), path.join(localVer, 'lib.target', 'mylib.' + SOEXT)]
},
{
'name': 'app7',
Expand Down

0 comments on commit 76bb9b6

Please sign in to comment.