Skip to content

Commit 92a7211

Browse files
authored
Forward javacOptions to JMH (#3578)
I believe this to be a solution for #3576 . However, I'm unclear how I could effectively test it. Feedback welcomed.
1 parent 2dc343f commit 92a7211

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contrib/jmh/src/mill/contrib/jmh/JmhModule.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ trait JmhModule extends JavaModule {
7272
def generateBenchmarkSources =
7373
Task {
7474
val dest = T.ctx().dest
75-
75+
val javacOpts = javacOptions().toSeq
7676
val sourcesDir = dest / "jmh_sources"
7777
val resourcesDir = dest / "jmh_resources"
7878

@@ -89,7 +89,8 @@ trait JmhModule extends JavaModule {
8989
sourcesDir.toString,
9090
resourcesDir.toString,
9191
"default"
92-
)
92+
),
93+
jvmArgs = javacOpts
9394
)
9495

9596
(sourcesDir, resourcesDir)

0 commit comments

Comments
 (0)