File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
test_dt_patches_user_srcjar
third_party/utils/src/test/io/bazel/rulesscala/utils Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -121,4 +121,7 @@ run_test_local test_compiler_srcjar 2.12.14
121
121
run_test_local test_compiler_srcjar 2.12.15
122
122
run_test_local test_compiler_srcjar 2.12.16
123
123
run_test_local test_compiler_srcjar_nonhermetic 2.12.17
124
- run_test_local test_compiler_srcjar_nonhermetic 2.12.18
124
+ run_test_local test_compiler_srcjar_nonhermetic 2.12.18
125
+
126
+ run_test_local test_compiler_srcjar_nonhermetic 2.13.11
127
+ run_test_local test_compiler_srcjar_nonhermetic 2.13.12
Original file line number Diff line number Diff line change @@ -91,6 +91,12 @@ srcjars_by_version = {
91
91
"2.12.18" : {
92
92
"url" : "https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.12.18/scala-compiler-2.12.18-sources.jar?foo" ,
93
93
},
94
+ "2.13.11" : {
95
+ "url" : "https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.11/scala-compiler-2.13.11-sources.jar?foo" ,
96
+ },
97
+ "2.13.12" : {
98
+ "url" : "https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/2.13.12/scala-compiler-2.13.12-sources.jar?foo" ,
99
+ },
94
100
}
95
101
96
102
rules_scala_setup (scala_compiler_srcjar = srcjars_by_version [SCALA_VERSION ])
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ import scala.reflect.io.AbstractFile
7
7
import scala .reflect .io .Directory
8
8
import scala .reflect .io .PlainDirectory
9
9
import scala .reflect .io .VirtualDirectory
10
- import scala .tools .cmd .CommandLineParser
11
10
import scala .tools .nsc .CompilerCommand
12
11
import scala .tools .nsc .Global
13
12
import scala .tools .nsc .Settings
13
+ import scala .tools .nsc .settings .MutableSettings
14
14
import scala .tools .nsc .reporters .StoreReporter
15
15
import io .bazel .rulesscala .dependencyanalyzer .DependencyTrackingMethod
16
16
@@ -108,7 +108,7 @@ object TestUtil {
108
108
output : AbstractFile
109
109
): List [StoreReporter # Info ] = {
110
110
// TODO: Optimize and cache global.
111
- val options = CommandLineParser .tokenize (compileOptions)
111
+ val options = new MutableSettings (_ => ()).splitParams (compileOptions)
112
112
val reporter = new StoreReporter ()
113
113
val settings = new Settings (println)
114
114
val _ = new CompilerCommand (options, settings)
You can’t perform that action at this time.
0 commit comments