diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-04-07 16:40:22 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-04-11 14:22:05 +0200 |
commit | 4a3b96282584c77c85ae51f5d29cf7c6082cd7fb (patch) | |
tree | a6c8bd91bb8c710007f37d20ca521e7ebf68a0e4 /project/Build.scala | |
parent | 037eb2bf6d227bb67855d2b68e5bec496db57c96 (diff) | |
download | dotty-4a3b96282584c77c85ae51f5d29cf7c6082cd7fb.tar.gz dotty-4a3b96282584c77c85ae51f5d29cf7c6082cd7fb.tar.bz2 dotty-4a3b96282584c77c85ae51f5d29cf7c6082cd7fb.zip |
Sbt: simplify debugging and tracing
Diffstat (limited to 'project/Build.scala')
-rw-r--r-- | project/Build.scala | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/project/Build.scala b/project/Build.scala index 8442ce5de..0e58cef68 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -6,6 +6,12 @@ object DottyBuild extends Build { val TRAVIS_BUILD = "dotty.travis.build" + val agentOptions = List( + // "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005", + // "-agentpath:/home/dark/opt/yjp-2013-build-13072/bin/linux-x86-64/libyjpagent.so" + ) + + val defaults = Defaults.defaultSettings ++ Seq( // set sources to src/, tests to test/ and resources to resources/ scalaSource in Compile := baseDirectory.value / "src", @@ -51,12 +57,12 @@ object DottyBuild extends Build { // System.err.println("BOOTPATH: " + fullpath) val travis_build = // propagate if this is a travis build - if (sys.props.isDefinedAt(TRAVIS_BUILD)) + if (sys.props.isDefinedAt(TRAVIS_BUILD)) List(s"-D$TRAVIS_BUILD=${sys.props(TRAVIS_BUILD)}") - else + else List() - travis_build ::: fullpath + agentOptions ::: travis_build ::: fullpath } ) |