aboutsummaryrefslogtreecommitdiff
path: root/cbt
diff options
context:
space:
mode:
authorJan Christopher Vogt <oss.nsp@cvogt.org>2017-02-10 01:11:22 -0500
committerGitHub <noreply@github.com>2017-02-10 01:11:22 -0500
commitd743136c6b98fa91f501cc15dc47530f8f93b8fe (patch)
treeaedb9af30e41f056aea148cc9e3b37d17327ca54 /cbt
parente2cb8726735ba306ade3befefae3b87549b52c9f (diff)
parentf5e653e033e468c58e8a832e0dce3a7020a66ce4 (diff)
downloadcbt-d743136c6b98fa91f501cc15dc47530f8f93b8fe.tar.gz
cbt-d743136c6b98fa91f501cc15dc47530f8f93b8fe.tar.bz2
cbt-d743136c6b98fa91f501cc15dc47530f8f93b8fe.zip
Merge pull request #314 from cvogt/fix-update-bugs
better caching and change propagation fixing link-time errors
Diffstat (limited to 'cbt')
-rwxr-xr-xcbt7
1 files changed, 5 insertions, 2 deletions
diff --git a/cbt b/cbt
index 2fc9e07..65e405d 100755
--- a/cbt
+++ b/cbt
@@ -113,9 +113,13 @@ mkdir -p $NAILGUN$TARGET
nailgun_out=$NAILGUN/target/nailgun.stdout.log
nailgun_err=$NAILGUN/target/nailgun.strerr.log
+DEBUG=""
foo(){
while test $# -gt 0; do
case "$1" in
+ "-debug")
+ DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
+ ;;
"-Dlog=nailgun")
nailgun_out=/dev/stderr
nailgun_err=/dev/stderr
@@ -193,9 +197,8 @@ stage1 () {
if [ $use_nailgun -eq 1 ]
then
log "Running JVM directly" "$@"
- # -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=localhost:5005
# JVM options to improve startup time. See https://github.com/cvogt/cbt/pull/262
- java $JAVA_OPTS -Xmx6072m -Xss10M -XX:MaxJavaStackTraceDepth=-1 -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -cp $NAILGUN$TARGET cbt.NailgunLauncher $(time_taken) "$CWD" "$@"
+ java $JAVA_OPTS $DEBUG -Xmx6072m -Xss10M -XX:MaxJavaStackTraceDepth=-1 -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -cp $NAILGUN$TARGET cbt.NailgunLauncher $(time_taken) "$CWD" "$@"
else
log "Running via background process (nailgun)" "$@"
for i in 0 1 2 3 4 5 6 7 8 9; do