From bd8b6af71a0ad4ee4f89105cedf1fbcfe1377725 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 16 Sep 2015 12:58:57 +0100 Subject: [PATCH] Use clang for building mips32r2_fp. Otherwise, we get a linker error when building for device/generic/art/mips32r2_fp. Change-Id: Ie0bda1fdb807888d7afabd6f29c79ccc0d59ddbc --- tools/buildbot-build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/buildbot-build.sh b/tools/buildbot-build.sh index 2ee87e51e..c69b819d2 100755 --- a/tools/buildbot-build.sh +++ b/tools/buildbot-build.sh @@ -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. -- 2.11.0