File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -100,10 +100,18 @@ object WithDebugCommand {
100100 state.fail
101101 case Some (taskKey) =>
102102 val extracted = Project .extract(state)
103- val withJavaOpts = extracted.appendWithoutSession(
104- Seq (Compile / Keys .javaOptions ++= javaOpts),
105- state
106- )
103+ // Append the java options also to the Benchmark configuration, in case we run `benchOnly`
104+ // task.
105+ val Benchmark = config(" bench" )
106+ val withJavaOpts = extracted
107+ .appendWithoutSession(
108+ Seq (Compile / Keys .javaOptions ++= javaOpts),
109+ state
110+ )
111+ .appendWithoutSession(
112+ Seq (Benchmark / Keys .javaOptions ++= javaOpts),
113+ state
114+ )
107115 Project
108116 .extract(withJavaOpts)
109117 .runInputTask(taskKey, runArgs, withJavaOpts)
You can’t perform that action at this time.
0 commit comments