OSDN Git Service

Use clang for building mips32r2_fp.
authorNicolas Geoffray <ngeoffray@google.com>
Wed, 16 Sep 2015 11:58:57 +0000 (12:58 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Wed, 16 Sep 2015 11:58:57 +0000 (12:58 +0100)
Otherwise, we get a linker error when building for
device/generic/art/mips32r2_fp.

Change-Id: Ie0bda1fdb807888d7afabd6f29c79ccc0d59ddbc

tools/buildbot-build.sh

index 2ee87e5..c69b819 100755 (executable)
@@ -71,6 +71,11 @@ elif [[ $mode == "target" ]]; then
   # We need to provide our own linker in case the linker on the device
   # is out of date.
   env="TARGET_GLOBAL_LDFLAGS=-Wl,-dynamic-linker=$android_root/bin/$linker"
+  # gcc gives a linker error, so compile with clang.
+  # TODO: investigate and fix?
+  if [[ $TARGET_PRODUCT == "mips32r2_fp" ]]; then
+    env="$env USE_CLANG_PLATFORM_BUILD=true"
+  fi
   # Use '-e' to force the override of TARGET_GLOBAL_LDFLAGS.
   # Also, we build extra tools that will be used by tests, so that
   # they are compiled with our own linker.