Skip to content

Commit

Permalink
ir gen mvp
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-schultz committed Jan 9, 2025
1 parent e550f0b commit 3d22ae9
Show file tree
Hide file tree
Showing 10 changed files with 1,345 additions and 982 deletions.
2 changes: 1 addition & 1 deletion hail/.scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.7.17
version = 3.8.3

runner.dialect = scala212

Expand Down
17 changes: 17 additions & 0 deletions hail/build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,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 +250,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

0 comments on commit 3d22ae9

Please sign in to comment.