build.sc (3956160f98fd99a914dc3ed63049918802875cfa) build.sc (1825b5e53b04400d3c075811b5923178af3c3dc2)
1/***************************************************************************************
2* Copyright (c) 2024 Beijing Institute of Open Source Chip (BOSC)
3* Copyright (c) 2020-2024 Institute of Computing Technology, Chinese Academy of Sciences
4* Copyright (c) 2020-2021 Peng Cheng Laboratory
5*
6* XiangShan is licensed under Mulan PSL v2.
7* You can use this software according to the terms and conditions of the Mulan PSL v2.
8* You may obtain a copy of Mulan PSL v2 at:

--- 288 unchanged lines hidden (view full) ---

297 |dirty=$gitDirty
298 |""".stripMargin
299 str
300 }
301
302 override def resources = T.sources {
303 os.write(T.dest / "publishVersion", publishVersion())
304 os.write(T.dest / "gitStatus", gitStatus())
1/***************************************************************************************
2* Copyright (c) 2024 Beijing Institute of Open Source Chip (BOSC)
3* Copyright (c) 2020-2024 Institute of Computing Technology, Chinese Academy of Sciences
4* Copyright (c) 2020-2021 Peng Cheng Laboratory
5*
6* XiangShan is licensed under Mulan PSL v2.
7* You can use this software according to the terms and conditions of the Mulan PSL v2.
8* You may obtain a copy of Mulan PSL v2 at:

--- 288 unchanged lines hidden (view full) ---

297 |dirty=$gitDirty
298 |""".stripMargin
299 str
300 }
301
302 override def resources = T.sources {
303 os.write(T.dest / "publishVersion", publishVersion())
304 os.write(T.dest / "gitStatus", gitStatus())
305 os.write(T.dest / "gitModules", os.proc("git", "submodule", "status").call().out.text())
305 super.resources() ++ Seq(PathRef(T.dest))
306 }
307
308 object test extends SbtTests with TestModule.ScalaTest {
309 override def forkArgs = Seq("-Xmx40G", "-Xss256m")
310
311 override def ivyDeps = super.ivyDeps() ++ Agg(
312 defaultVersions("chiseltest")
313 )
314
315 override def scalacOptions = super.scalacOptions() ++ Agg("-deprecation", "-feature")
316
317 val resourcesPATH = pwd.toString() + "/src/main/resources"
318 val envPATH = sys.env("PATH") + ":" + resourcesPATH
319
320 override def forkEnv = Map("PATH" -> envPATH)
321 }
322}
306 super.resources() ++ Seq(PathRef(T.dest))
307 }
308
309 object test extends SbtTests with TestModule.ScalaTest {
310 override def forkArgs = Seq("-Xmx40G", "-Xss256m")
311
312 override def ivyDeps = super.ivyDeps() ++ Agg(
313 defaultVersions("chiseltest")
314 )
315
316 override def scalacOptions = super.scalacOptions() ++ Agg("-deprecation", "-feature")
317
318 val resourcesPATH = pwd.toString() + "/src/main/resources"
319 val envPATH = sys.env("PATH") + ":" + resourcesPATH
320
321 override def forkEnv = Map("PATH" -> envPATH)
322 }
323}