Skip to content

Commit

Permalink
Forward javacOptions to JMH (com-lihaoyi#3578)
Browse files Browse the repository at this point in the history
I believe this to be a solution for com-lihaoyi#3576 . However, I'm unclear how I
could effectively test it. Feedback welcomed.
  • Loading branch information
Quafadas authored Sep 19, 2024
1 parent 2dc343f commit 92a7211
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contrib/jmh/src/mill/contrib/jmh/JmhModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ trait JmhModule extends JavaModule {
def generateBenchmarkSources =
Task {
val dest = T.ctx().dest

val javacOpts = javacOptions().toSeq
val sourcesDir = dest / "jmh_sources"
val resourcesDir = dest / "jmh_resources"

Expand All @@ -89,7 +89,8 @@ trait JmhModule extends JavaModule {
sourcesDir.toString,
resourcesDir.toString,
"default"
)
),
jvmArgs = javacOpts
)

(sourcesDir, resourcesDir)
Expand Down

0 comments on commit 92a7211

Please sign in to comment.