Skip to content

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Mar 6, 2024

Fixes #2779
Also, improves the way we test compiler print options.

@Gedochao Gedochao marked this pull request as ready for review March 7, 2024 07:27
@Gedochao Gedochao merged commit 9c8b9de into VirtusLab:main Mar 14, 2024
@Gedochao Gedochao deleted the maintenance/scalac-xlint-help branch March 14, 2024 09:40
"-Xshow-phases",
"-Xplugin-list",
"-Xlint:help",
"-Vphases"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are others, like -opt:help, -Xsource:help, -Xmixin-force-forwarders:help. Would it be possible to forward any ...:help?

Or a more general change where the compiler is invoked in case there are no source files?

Somewhat related

➜ sandbox scala-cli compile --server=false -S 2 -Vprint-args a.txt A.scala [error] a.txt: unrecognized source type (expected .scala or .sc extension, or a directory). If a.txt is meant to be treated as a script, add a shebang header in its top line. #!/usr/bin/env -S scala-cli shebang When a shebang header is provided, the script can then be run with the 'shebang' sub-command, even if no file extension is present. scala-cli shebang a.txt 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants