OSDN Git Service

Enable art host static builds only for checkbuilds.
authorCalin Juravle <calin@google.com>
Fri, 24 Jul 2015 15:45:26 +0000 (16:45 +0100)
committerCalin Juravle <calin@google.com>
Fri, 24 Jul 2015 15:45:26 +0000 (16:45 +0100)
Change-Id: I42cc850089a5ecbcc201699f0b996da4fd959bb3

build/Android.common_build.mk

index 2c552e6..05cfc42 100644 (file)
@@ -33,7 +33,13 @@ ART_BUILD_TARGET_NDEBUG ?= true
 ART_BUILD_TARGET_DEBUG ?= true
 ART_BUILD_HOST_NDEBUG ?= true
 ART_BUILD_HOST_DEBUG ?= true
-ART_BUILD_HOST_STATIC ?= true
+
+# Enable the static builds only for checkbuilds.
+ifneq (,$(filter checkbuild,$(MAKECMDGOALS)))
+  ART_BUILD_HOST_STATIC ?= true
+else
+  ART_BUILD_HOST_STATIC ?= false
+endif
 
 # Asan does not support static linkage
 ifdef SANITIZE_HOST