Skip to content

Commit bd79727

Browse files
committed
fix to allow use threads and native in parallel
1 parent b8aaad4 commit bd79727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-schema-compiler/src/compiler/DataSchemaCompiler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class DataSchemaCompiler {
268268
const transpilationNativeThreadsCount = getThreadsCount();
269269
const { compilerId } = this;
270270

271-
if (!transpilationNative && transpilationWorkerThreads) {
271+
if (transpilationWorkerThreads) {
272272
const wc = getEnv('transpilationWorkerThreadsCount');
273273
this.workerPool = workerpool.pool(
274274
path.join(__dirname, 'transpilers/transpiler_worker'),
@@ -288,7 +288,7 @@ export class DataSchemaCompiler {
288288

289289
if (transpilationNative) {
290290
const nonJsFilesTasks = toCompile.filter(file => !file.fileName.endsWith('.js'))
291-
.map(f => this.transpileFile(f, errorsReport, { transpilerNames, compilerId }));
291+
.map(f => this.transpileFile(f, errorsReport, { cubeNames, cubeSymbols, transpilerNames, compilerId }));
292292

293293
const jsFiles = toCompile.filter(file => file.fileName.endsWith('.js'));
294294
let jsFilesTasks: Promise<(FileContent | undefined)[]>[] = [];

0 commit comments

Comments
 (0)