Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit 43f7dde

Browse files
committed
Fix circle-ci builds
1 parent b64567e commit 43f7dde

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

scripts/build.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ const PREBUILD_TOKEN = process.env.PREBUILD_TOKEN;
88
const PUBLISH_BINARY = process.env.PUBLISH_BINARY || false;
99

1010

11-
function build(item) {
11+
function build({target, runtime, abi}) {
1212
try {
13-
item.abi && getTarget(item.target, item.runtime);
13+
abi && getTarget(target, runtime);
1414
} catch (err) {
1515
return Promise.resolve();
1616
}
1717

18-
const args = ['--verbose', '-r', item.runtime, '-t', item.target];
18+
const args = ['--verbose', '-r', runtime, '-t', target];
1919

2020
if (libc.isNonGlibcLinux) {
2121
process.env.LIBC = libc.family;
@@ -57,4 +57,3 @@ builds
5757
.reduce((promise, item) => {
5858
return promise.then(() => build(item)).catch((code) => process.exit(code));
5959
}, Promise.resolve());
60-

src/dec/stream_decode_tasks.cc

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "stream_decode_tasks.h"
22

3+
using namespace std;
4+
35
void ExecuteDecode(napi_env env, void* data) {
46
StreamDecode* obj = reinterpret_cast<StreamDecode*>(data);
57
BrotliDecoderResult res;

src/enc/stream_encode_tasks.cc

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "stream_encode_tasks.h"
22

3+
using namespace std;
4+
35
void ExecuteEncode(napi_env env, void* data) {
46
StreamEncode* obj = reinterpret_cast<StreamEncode*>(data);
57

0 commit comments

Comments
 (0)