summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2017-11-18 19:42:38 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2017-11-18 19:42:38 -0800
commitc4ee67d3ea4e2e96fe09d5fcb21734902e6bfa56 (patch)
treef6fd01818e955452c0adf23bc7f5c57d5b9999de /build.sc
parent2412bf2775676a9c09eb3d370a2bd9064c51822b (diff)
downloadmill-c4ee67d3ea4e2e96fe09d5fcb21734902e6bfa56.tar.gz
mill-c4ee67d3ea4e2e96fe09d5fcb21734902e6bfa56.tar.bz2
mill-c4ee67d3ea4e2e96fe09d5fcb21734902e6bfa56.zip
First hack pass at cross-build discovery and command-running now works.
Can be tested out on our `build.sc` via `scalaplugin/target/mill run Core.cross[a].printIt` Needs tons of cleanup...
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.sc b/build.sc
index 821780b6..ca57bb99 100755
--- a/build.sc
+++ b/build.sc
@@ -20,6 +20,12 @@ object Core extends ScalaModule {
def basePath = pwd / 'core
override def sources = pwd/'core/'src/'main/'scala
+
+ val cross = for(c <- mill.define.Cross("a", "b", "c")) yield new mill.Module{
+ def printIt() = T.command{
+ println("PRINTING IT: " + c)
+ }
+ }
}
object CoreTests extends ScalaModule {
def scalaVersion = "2.12.4"