Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[query] codegen all value ir node classes #14771

Draft
wants to merge 1 commit into
base: ps/ir-defs
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions hail/build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ trait HailModule extends ScalaModule with ScalafmtModule with ScalafixModule { o
"-Xlint",
"-Ywarn-unused:_,-explicits,-implicits",
"-Wconf:msg=legacy-binding:s",
"-feature",
) ++ (
if (build.env.debugMode()) Seq()
else Seq(
Expand Down Expand Up @@ -175,6 +176,10 @@ object hail extends HailModule { outer =>
buildInfo(),
)

override def generatedSources: T[Seq[PathRef]] = Task {
Seq(`ir-gen`.generate())
}

override def unmanagedClasspath: T[Agg[PathRef]] =
Agg(shadedazure.assembly())

Expand Down Expand Up @@ -246,6 +251,19 @@ object hail extends HailModule { outer =>
PathRef(T.dest)
}

object `ir-gen` extends HailModule {
def ivyDeps = Agg(
ivy"com.lihaoyi::mainargs:0.6.2",
ivy"com.lihaoyi::os-lib:0.10.7",
ivy"com.lihaoyi::sourcecode:0.4.2",
)

def generate: T[PathRef] = Task {
runner().run(Args("--path", T.dest).value)
PathRef(T.dest)
}
}

object memory extends JavaModule { // with CrossValue {
override def zincIncrementalCompilation: T[Boolean] = false

Expand Down
Loading