From 1eb9d8b4f799b2b727832771fd9fc275f6329fc2 Mon Sep 17 00:00:00 2001 From: Maksym Ochenashko Date: Wed, 23 Oct 2024 13:53:40 +0300 Subject: [PATCH] build: limit number of concurrent native links --- build.sbt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sbt b/build.sbt index 353a04ba7..9717ce62c 100644 --- a/build.sbt +++ b/build.sbt @@ -15,6 +15,9 @@ ThisBuild / tlSonatypeUseLegacyHost := false // publish website from this branch ThisBuild / tlSitePublishBranch := Some("main") +// VM runs out of memory when linking multiple targets concurrently, hence limit it +Global / concurrentRestrictions += Tags.limit(NativeTags.Link, 1) + lazy val scalafixSettings = Seq( semanticdbOptions ++= Seq("-P:semanticdb:synthetics:on").filter(_ => !tlIsScala3.value) )