summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorJack Koenig2021-12-20 13:21:12 -0800
committerJack Koenig2021-12-20 13:39:34 -0800
commit6388385fb38378d04b8c3df84dba5870f2904ae4 (patch)
treea84b8f799063f04d8002d231a2993b9b2b981ad4 /build.sbt
parent7c7de8d404b0e6d5ed0c67b4a7862c62b36e0958 (diff)
[plugin] add -P:chiselplugin:INTERNALskipFile
This enables skipping files in the compiler plugin, only needed for unidoc generation.
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt8
1 files changed, 7 insertions, 1 deletions
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