diff --git a/contrib/jmh/src/mill/contrib/jmh/JmhModule.scala b/contrib/jmh/src/mill/contrib/jmh/JmhModule.scala index 597efea84ed..27f71e6b81d 100644 --- a/contrib/jmh/src/mill/contrib/jmh/JmhModule.scala +++ b/contrib/jmh/src/mill/contrib/jmh/JmhModule.scala @@ -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" @@ -89,7 +89,8 @@ trait JmhModule extends JavaModule { sourcesDir.toString, resourcesDir.toString, "default" - ) + ), + jvmArgs = javacOpts ) (sourcesDir, resourcesDir)