Skip to content

Commit d6fcbb2

Browse files
committed
Upgrade to GCC v20240317. Require JDK 17+.
This fixes the issue where GCC breaks the output of the new expanded RuntimeLongs.
1 parent 029a6fa commit d6fcbb2

File tree

8 files changed

+37
-12
lines changed

8 files changed

+37
-12
lines changed

.github/workflows/windows-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16-
java: [ '8' ]
16+
java: [ '17' ]
1717

1818
# Use the latest supported version. We will be less affected by ambient changes
1919
# due to the lack of pinning than by breakages because of changing version support.

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ def Tasks = [
523523
'''
524524
]
525525

526-
def mainJavaVersion = "1.8"
527-
def otherJavaVersions = ["11", "17", "21"]
526+
def mainJavaVersion = "17"
527+
def otherJavaVersions = ["21"]
528528
def allJavaVersions = otherJavaVersions.clone()
529529
allJavaVersions << mainJavaVersion
530530

linker/jvm/src/main/scala/org/scalajs/linker/backend/closure/ClosureAstTransformer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ private class ClosureAstTransformer(featureSet: FeatureSet,
445445

446446
case StringLiteral(name) =>
447447
val node = Node.newString(Token.STRING_KEY, name)
448-
node.setQuotedString()
448+
node.setQuotedStringKey()
449449
node
450450

451451
case ComputedName(nameExpr) =>

linker/jvm/src/main/scala/org/scalajs/linker/backend/closure/ClosureLinkerBackend.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ final class ClosureLinkerBackend(config: LinkerBackendImpl.Config)
154154
new LoggerErrorReportGenerator(logger)))))
155155

156156
val result =
157-
compiler.compileModules(externs, Arrays.asList(chunk), options)
157+
compiler.compileChunks(externs, Arrays.asList(chunk), options)
158158

159159
if (!result.success) {
160160
throw new LinkingException(
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
start at -5: java.lang.ArrayIndexOutOfBoundsException: -5
2+
start at -1: java.lang.ArrayIndexOutOfBoundsException: -1
3+
start at limit: ok
4+
start at limit-1: ok
5+
first 10: ok
6+
read all: ok
7+
test huge len: ok
8+
5 from 5: ok
9+
20 from 5: ok
10+
test len overflow: ok
11+
start beyond limit: ok
12+
read 0: ok
13+
read -1: ok
14+
invalid read 0: ok
15+
invalid read -1: ok

partest-suite/src/test/resources/scala/tools/partest/scalajs/2.13.16/BlacklistedTests.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ run/predef-cycle.scala
9494
run/synchronized.scala
9595
run/sd409.scala
9696
run/t12572.scala
97+
run/t12918.scala
9798
run/deadlock.scala
9899

99100
# Uses java.security
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
start at -5: java.lang.ArrayIndexOutOfBoundsException: -5
2+
start at -1: java.lang.ArrayIndexOutOfBoundsException: -1
3+
start at limit: ok
4+
start at limit-1: ok
5+
first 10: ok
6+
read all: ok
7+
test huge len: ok
8+
5 from 5: ok
9+
20 from 5: ok
10+
test len overflow: ok
11+
start beyond limit: ok
12+
read 0: ok
13+
read -1: ok
14+
invalid read 0: ok
15+
invalid read -1: ok

project/Build.scala

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ object Build {
13301330
commonLinkerSettings,
13311331

13321332
libraryDependencies ++= Seq(
1333-
"com.google.javascript" % "closure-compiler" % "v20220202",
1333+
"com.google.javascript" % "closure-compiler" % "v20240317",
13341334
"com.google.jimfs" % "jimfs" % "1.1" % "test",
13351335
"org.scala-js" %% "scalajs-env-nodejs" % "1.4.0" % "test",
13361336
"org.scala-js" %% "scalajs-js-envs-test-kit" % "1.4.0" % "test"
@@ -2566,9 +2566,6 @@ object Build {
25662566
testSuiteExCommonSettings(isJSTest = true),
25672567
name := "Scala.js test suite ex",
25682568
publishArtifact in Compile := false,
2569-
2570-
// FIXME Closure breaks the new Longs in this project
2571-
Test/fullLinkJS/scalaJSLinkerConfig ~= { _.withClosureCompiler(false) },
25722569
).withScalaJSCompiler.withScalaJSJUnitPlugin.dependsOnLibrary.dependsOn(
25732570
javalibExtDummies, jUnitRuntime, testBridge % "test", testSuite
25742571
)
@@ -2762,9 +2759,6 @@ object Build {
27622759
NoIDEExport.noIDEExportSettings,
27632760

27642761
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-s"),
2765-
2766-
// FIXME Closure breaks the new Longs in this project
2767-
Test/fullLinkJS/scalaJSLinkerConfig ~= { _.withClosureCompiler(false) },
27682762
).zippedSettings(partest)(partest =>
27692763
unmanagedSources in Compile ++= {
27702764
val scalaV = scalaVersion.value

0 commit comments

Comments
 (0)