diff options
author | 2016-07-15 11:54:25 +0000 | |
---|---|---|
committer | 2016-07-15 13:32:02 +0000 | |
commit | 3b9d5071c0feba2bf2e375ee2fc883e474d3287b (patch) | |
tree | 0684d6b76045d4931d4afcba6c01270959b83c5e /scripts | |
parent | 44fa4c7c24c578459fa582557ede577d24ac8ef1 (diff) |
Bootstrap Bazel with debug symbols.
This helps a lot when trying to debug Bazel from an IDE.
--
MOS_MIGRATED_REVID=127529499
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bootstrap/bootstrap.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/bootstrap/bootstrap.sh b/scripts/bootstrap/bootstrap.sh index e6143f7c0d..ab09cdb8a6 100755 --- a/scripts/bootstrap/bootstrap.sh +++ b/scripts/bootstrap/bootstrap.sh @@ -48,7 +48,7 @@ if [ -z "${BAZEL-}" ]; then function bazel_build() { bootstrap_build ${BAZEL_ARGS-} \ --verbose_failures \ - --javacopt="-source ${JAVA_VERSION} -target ${JAVA_VERSION}" \ + --javacopt="-g -source ${JAVA_VERSION} -target ${JAVA_VERSION}" \ "${EMBED_LABEL_ARG[@]}" \ "${@}" } @@ -57,7 +57,7 @@ else ${BAZEL} --bazelrc=${BAZELRC} ${BAZEL_DIR_STARTUP_OPTIONS} build \ ${BAZEL_ARGS-} \ --verbose_failures \ - --javacopt="-source ${JAVA_VERSION} -target ${JAVA_VERSION}" \ + --javacopt="-g -source ${JAVA_VERSION} -target ${JAVA_VERSION}" \ "${EMBED_LABEL_ARG[@]}" \ "${@}" } @@ -99,7 +99,7 @@ function bootstrap_test() { ${EXTRA_BAZEL_ARGS-} ${STRATEGY} \ --fetch --nostamp \ --define "JAVA_VERSION=${JAVA_VERSION}" \ - --javacopt="-source ${JAVA_VERSION} -target ${JAVA_VERSION}" \ + --javacopt="-g -source ${JAVA_VERSION} -target ${JAVA_VERSION}" \ ${BAZEL_TARGET} || return $? if [ -n "${BAZEL_SUM}" ]; then cat bazel-genfiles/src/java.version >${BAZEL_SUM} |