Skip to content

Commit

Permalink
Support -experimental/--experimental and -explain/ --explain
Browse files Browse the repository at this point in the history
…compiler flags without `-O`
  • Loading branch information
Gedochao committed Nov 13, 2024
1 parent a5db176 commit 8e44678
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ object ScalacOptions {
)
private val scalacNoArgAliasedOptions = // these options don't require being passed after -O and don't accept an arg
Set(
"experimental",
"explain",
"unchecked",
"nowarn",
"feature",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,9 @@ trait RunScalacCompatTestDefinitions {
TestUtil.cli,
"run",
".",
"-O",
"-experimental",
if (useDirective) Nil else macroSettingOptions,
extraOptions
extraOptions,
"-experimental"
)
.call(cwd = root, stderr = os.Pipe)
expect(r.out.trim() == macroSettings.mkString(", "))
Expand Down

0 comments on commit 8e44678

Please sign in to comment.