MCPcopy Create free account
hub / github.com/catboost/catboost / compileNativeAddon

Function compileNativeAddon

catboost/node-package/build_scripts/build.ts:21–29  ·  view source on GitHub ↗
(srcPath = join('..','..'))

Source from the content-addressed store, hash-verified

19}
20
21async function compileNativeAddon(srcPath = join('..','..')) {
22 process.env['CATBOOST_SRC_PATH'] = srcPath;
23 const result = await execProcess('node-gyp build');
24 if (result.code !== 0) {
25 console.error(`Building native-addon library failed:
26 ${result.code} ${result.signal} ${result.err?.message}`);
27 process.exit(1);
28 }
29}
30
31export async function compileJs() {
32 await compileTypeScript();

Callers 2

compileBindingsFunction · 0.85
buildLocalFunction · 0.85

Calls 3

execProcessFunction · 0.90
joinFunction · 0.50
errorMethod · 0.45

Tested by

no test coverage detected