diff options
author | Jason Wray <jason@mapbox.com> | 2019-05-13 14:40:49 -0700 |
---|---|---|
committer | Jason Wray <jason@mapbox.com> | 2019-05-13 15:12:55 -0700 |
commit | cd24f4c45f6b38e7f3dc73cf0afda9b86b3d85d4 (patch) | |
tree | bdc37fda1c863b0c5600de84176a1a61fe13d81d | |
parent | 4d935b9d319782ef0d40c5445c7f692ee43ed783 (diff) | |
download | qtlocation-mapboxgl-cd24f4c45f6b38e7f3dc73cf0afda9b86b3d85d4.tar.gz |
[build, darwin] Fix ENOBUFS in build scripts on NodeJS 12.x
-rwxr-xr-x | platform/darwin/scripts/check-public-symbols.js | 2 | ||||
-rwxr-xr-x | platform/darwin/scripts/update-examples.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/scripts/check-public-symbols.js b/platform/darwin/scripts/check-public-symbols.js index 4dde5d677b..a2045f81ec 100755 --- a/platform/darwin/scripts/check-public-symbols.js +++ b/platform/darwin/scripts/check-public-symbols.js @@ -18,7 +18,7 @@ function hasMissingSymbols(os) { let umbrellaPath = `platform/${os.toLowerCase()}/src/Mapbox.h`; let docArgs = ['doc', '--objc', umbrellaPath, '--', '-x', 'objective-c', '-I', 'platform/darwin/src/', '-isysroot', sysroot]; - let docStr = execFileSync('sourcekitten', docArgs).toString().trim(); + let docStr = execFileSync('sourcekitten', docArgs, { maxBuffer: Infinity }).toString().trim(); let docJson = JSON.parse(docStr); _.forEach(docJson, function (result) { _.forEach(result, function (structure, path) { diff --git a/platform/darwin/scripts/update-examples.js b/platform/darwin/scripts/update-examples.js index f87ed07288..885b26248c 100755 --- a/platform/darwin/scripts/update-examples.js +++ b/platform/darwin/scripts/update-examples.js @@ -75,7 +75,7 @@ function completeExamples(os) { let umbrellaPath = `platform/${os.toLowerCase()}/src/Mapbox.h`; let docArgs = ['doc', '--objc', umbrellaPath, '--', '-x', 'objective-c', '-I', 'platform/darwin/src/', '-isysroot', sysroot]; - let docStr = execFileSync('sourcekitten', docArgs).toString().trim(); + let docStr = execFileSync('sourcekitten', docArgs, { maxBuffer: Infinity }).toString().trim(); let docJson = JSON.parse(docStr); _.forEach(docJson, function (result) { _.forEach(result, function (structure, path) { |