@@ -273,7 +273,7 @@ bool buildProjectParallelSimple(ProjectNode root, CompilingSession s, const(AdvC
273273 {
274274 spawned[dep] = true ;
275275 spawn(&execCompilationThread,
276- dep.requirements.buildData(false ), cast (shared )dep,
276+ dep.requirements.buildData(false , s ), cast (shared )dep,
277277 s, HashPair (mainPackHash, hashFrom(dep.requirements, s)),
278278 getEnvForProject(dep, env),
279279 execID
@@ -367,7 +367,7 @@ bool buildProjectFullyParallelized(ProjectNode root, CompilingSession s, const(A
367367 {
368368 sentPackages++ ;
369369 spawn(&execCompilationThread,
370- pack.requirements.buildData(pack is priority),
370+ pack.requirements.buildData(pack is priority, s ),
371371 cast (shared )pack,
372372 s,
373373 HashPair(mainPackHash, hashFrom (pack.requirements, s)),
@@ -476,7 +476,7 @@ bool buildProjectSingleThread(ProjectNode root, CompilingSession s, const(AdvCac
476476 {
477477 if (dep.shouldEnterCompilationThread)
478478 {
479- CompilationResult res = execCompilation(dep.requirements.buildData(true ), cast (shared )dep,
479+ CompilationResult res = execCompilation(dep.requirements.buildData(true , s ), cast (shared )dep,
480480 s,
481481 HashPair(mainPackHash, hashFrom (dep.requirements, s)), getEnvForProject(dep, env), Tid.init, 0
482482 );
@@ -656,7 +656,7 @@ private bool doLink(ProjectNode root, CompilingSession info, string mainPackHash
656656 {
657657 CompilationResult linkRes;
658658 auto result = timed(() {
659- linkRes = link(root, mainPackHash, root.requirements.buildData(true ), info, getEnvForProject(root, env ? env : cast (const )getCurrentEnv()));
659+ linkRes = link(root, mainPackHash, root.requirements.buildData(true , info ), info, getEnvForProject(root, env ? env : cast (const )getCurrentEnv()));
660660 return true ;
661661 });
662662 if (linkRes.status)
0 commit comments