Skip to content

Tweaks to allow Compilation on both Scala 2.13 and 2.12 - #470

Merged
Dolu1990 merged 4 commits into
SpinalHDL:masterfrom
pete-restall:scala-2.13
Feb 11, 2026
Merged

Dolu1990 merged 4 commits into
SpinalHDL:masterfrom
pete-restall:scala-2.13

Conversation

@pete-restall

Copy link
Copy Markdown
Contributor

Hello,

I needed support for Scala 2.13 so I forked VexRiscV and added it as a cross target. My fork certainly works for my use-case and I thought I'd contribute back as it may be of use to yourselves and others that wish to integrate.

Basically, in the absence of packages, it allows me to build via SBT as a sub-module like this:

ThisBuild / scalaVersion := "2.13.18"

// ...

val spinalVersion = "1.13.0"

lazy val root = (project in file("."))
	.settings(
		// ...
		libraryDependencies ++= Seq(
			"org.scalatest" %% "scalatest" % "3.2.17" % Test,
			"com.github.spinalhdl" %% "spinalhdl-core" % spinalVersion,
			"com.github.spinalhdl" %% "spinalhdl-lib" % spinalVersion,
			compilerPlugin("com.github.spinalhdl" %% "spinalhdl-idsl-plugin" % spinalVersion)))

	.dependsOn(vexriscv)

lazy val vexriscv = RootProject(uri("https://github.com/pete-restall/fork-VexRiscv.git#3261ef67efd64f9d2c21ed9b55f0ea3a1bb62d58"))

I'm happy to tweak it if you need me to.

Cheers.

Comment thread build.sbt Outdated

@pete-restall pete-restall left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think we're good now - default version reverted as requested.

swap scala versions
@Dolu1990
Dolu1990 merged commit 6807560 into SpinalHDL:master Feb 11, 2026
1 check passed
@Dolu1990

Copy link
Copy Markdown
Member

Thanks ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants