Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@ lazy val benchmarkCompile = projectMatrix

lazy val commonSettings = Seq(
versionScheme := Some("early-semver"),
nativeConfig ~= { config =>
// Avoid GNU ld executable-stack warnings from Scala Native runtime assembly objects.
val linuxNoExecStackLinkerOption = "-Wl,-z,noexecstack"
if (scala.util.Properties.isLinux && !config.linkingOptions.contains(linuxNoExecStackLinkerOption))
config.withLinkingOptions(config.linkingOptions :+ linuxNoExecStackLinkerOption)
else config
},
scalacOptions ++= (if (isScala3.value)
Seq.empty
else
Expand Down
Loading