Support --java-opt
/ -J
for compile
task under --server=false
#2865
Labels
enhancement
New feature or request
priority: low
scalac compatibility
Issues tied with compatibility with the scalac (compiler) command.
UX
It would be handy if
scala-cli compile --server=false
supported-J
options, they would be passed to the JVM running the compiler.Use case is opening a debugger port (
scala-cli compile --server=false -J-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 Test.scala
).Workaround is to use
--scalac-option -J-...
That was added in https://github.com/VirtusLab/scala-cli/pull/2601/files, but it seems a bit strange.
scalac -J...
is supported by the old runner script, not by the compiler itself.The text was updated successfully, but these errors were encountered: