From 6388385fb38378d04b8c3df84dba5870f2904ae4 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Mon, 20 Dec 2021 13:21:12 -0800 Subject: [plugin] add -P:chiselplugin:INTERNALskipFile This enables skipping files in the compiler plugin, only needed for unidoc generation. --- build.sbt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build.sbt') diff --git a/build.sbt b/build.sbt index 8a39d958..7cad3e6d 100644 --- a/build.sbt +++ b/build.sbt @@ -218,7 +218,13 @@ lazy val chisel = (project in file(".")). } s"https://github.com/chipsalliance/chisel3/tree/$branch€{FILE_PATH_EXT}#L€{FILE_LINE}" } - ) + ) ++ + // Suppress compiler plugin for source files in core + // We don't need this in regular compile because we just don't add the chisel3-plugin to core's scalacOptions + // This works around an issue where unidoc uses the exact same arguments for all source files. + // This is probably fundamental to how ScalaDoc works so there may be no solution other than this workaround. + // See https://github.com/sbt/sbt-unidoc/issues/107 + (core / Compile / sources).value.map("-P:chiselplugin:INTERNALskipFile:" + _) ) // tests elaborating and executing/formally verifying a Chisel circuit with chiseltest -- cgit v1.2.3