Skip to content

Commit ec2402f

Browse files
committed
buildcheck: fix arch check and sources
1 parent 0adfe83 commit ec2402f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

buildcheck.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
'use strict';
22

3-
if (process.platform === 'win32'
4-
|| ['ia32', 'x32', 'x64'].includes(process.arch)) {
5-
return console.log('{}');
6-
}
7-
83
const BuildEnvironment = require('buildcheck');
94

105
const be = new BuildEnvironment();
116

12-
const gyp = {
7+
let gyp = {
138
defines: [],
149
libraries: [],
1510
sources: [
16-
'include/internal/hwcaps.h',
17-
'include/internal/unix_features_aggregator.h',
18-
'src/hwcaps.c',
19-
'src/unix_features_aggregator.c',
11+
'deps/cpu_features/include/internal/hwcaps.h',
12+
'deps/cpu_features/src/hwcaps.c',
2013
],
2114
};
2215

@@ -29,4 +22,11 @@ if (be.checkDeclared('c', 'getauxval', { headers: ['sys/auxv.h'] }))
2922
gyp.defines.push(...be.defines(null, true));
3023
gyp.libraries.push(...be.libs());
3124

25+
gyp = {
26+
conditions: [
27+
['OS!="win" and target_arch not in "ia32 x32 x64"',
28+
gyp],
29+
],
30+
};
31+
3232
console.log(JSON.stringify(gyp, null, 2));

0 commit comments

Comments
 (0)