Skip to content

Commit 4a3b962

Browse files
committed
Sbt: simplify debugging and tracing
1 parent 037eb2b commit 4a3b962

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

project/Build.scala

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ object DottyBuild extends Build {
66

77
val TRAVIS_BUILD = "dotty.travis.build"
88

9+
val agentOptions = List(
10+
// "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005",
11+
// "-agentpath:/home/dark/opt/yjp-2013-build-13072/bin/linux-x86-64/libyjpagent.so"
12+
)
13+
14+
915
val defaults = Defaults.defaultSettings ++ Seq(
1016
// set sources to src/, tests to test/ and resources to resources/
1117
scalaSource in Compile := baseDirectory.value / "src",
@@ -51,12 +57,12 @@ object DottyBuild extends Build {
5157
// System.err.println("BOOTPATH: " + fullpath)
5258

5359
val travis_build = // propagate if this is a travis build
54-
if (sys.props.isDefinedAt(TRAVIS_BUILD))
60+
if (sys.props.isDefinedAt(TRAVIS_BUILD))
5561
List(s"-D$TRAVIS_BUILD=${sys.props(TRAVIS_BUILD)}")
56-
else
62+
else
5763
List()
5864

59-
travis_build ::: fullpath
65+
agentOptions ::: travis_build ::: fullpath
6066
}
6167
)
6268

0 commit comments

Comments
 (0)