Skip to content

Instantly share code, notes, and snippets.

@troykelly
Last active May 14, 2018 01:46
Show Gist options
  • Save troykelly/0299c107a5c122496847eee81892c4d0 to your computer and use it in GitHub Desktop.
Save troykelly/0299c107a5c122496847eee81892c4d0 to your computer and use it in GitHub Desktop.
diff -ruN ../bazel.orig/scripts/bootstrap/compile.sh ./scripts/bootstrap/compile.sh
--- ../bazel.orig/scripts/bootstrap/compile.sh 2018-05-14 01:37:24.514906477 +0000
+++ ./scripts/bootstrap/compile.sh 2018-05-14 01:38:42.115848112 +0000
@@ -116,7 +116,7 @@
run "${JAVAC}" -classpath "${classpath}" -sourcepath "${sourcepath}" \
-d "${output}/classes" -source "$JAVA_VERSION" -target "$JAVA_VERSION" \
- -encoding UTF-8 "@${paramfile}"
+ -encoding UTF-8 "@${paramfile}" -J-Xmx500M
log "Extracting helper classes for $name..."
for f in ${library_jars} ; do
diff -ruN ../bazel.orig/tools/cpp/lib_cc_configure.bzl ./tools/cpp/lib_cc_configure.bzl
--- ../bazel.orig/tools/cpp/lib_cc_configure.bzl 2018-05-14 01:37:25.294900684 +0000
+++ ./tools/cpp/lib_cc_configure.bzl 2018-05-14 01:39:12.146490744 +0000
@@ -146,6 +146,7 @@
def get_cpu_value(repository_ctx):
"""Compute the cpu_value based on the OS name. Doesn't %-escape the result!"""
+ return "arm"
os_name = repository_ctx.os.name.lower()
if os_name.startswith("mac os"):
return "darwin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment