[backport] Scala.js support for 1.0.x #83
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit backports the commit below, with two caveats:
enabled on the JVM for now
build in 1.0.x (it didn't in master for some reason),
so the second backport commit below had to be squashed
with this one
[backport] Add support for Scala.js, with cross-compilation.
Scala versions were upgraded to 2.11.7 and 2.12.0-M3.
2.12 is only used when running the build on JDK8 or later.
JavaTokenParsers.identifier was rewritten not to use a regexp,
but rather primitive parsers and
Character.isJavaIdentifier{Start,Part}. The regexp-based
implementation relies on Java-specific character ranges.
JavaTokenParsers.stringLiteral was slightly adapted with an
expansion of
\p{Cntrl}
into[\x00-\x1F\x7F]
. The formercharacter range is Java-specific. We also removed an invalid
(and useless)
+
at the end of the regexp.The test t4929.scala is JVM-only.
(cherry picked from commit 98737a2)
[backport] set Scala version in a more dbuild-friendly way
having scalaVersion and crossScalaVersions set in different
places was confusing dbuild
needed to fix scala/community-build#215
(cherry picked from commit bde222c)