summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-06-02 17:41:21 +0100
committerBen Murdoch <benm@google.com>2011-06-10 15:43:44 +0100
commit442c3c4c26c4d864ad9a4948f856e706e77c3cd2 (patch)
tree0c72827401c4ab3ab339eec2e6976778aaac64bb /Android.mk
parentcf5f5d46c00b2fd43d6b1148dcb3d4e39eff0910 (diff)
downloadandroid_external_v8-442c3c4c26c4d864ad9a4948f856e706e77c3cd2.tar.gz
android_external_v8-442c3c4c26c4d864ad9a4948f856e706e77c3cd2.tar.bz2
android_external_v8-442c3c4c26c4d864ad9a4948f856e706e77c3cd2.zip
Make Crankshaft configurable at compile-time.
Add a flag in Android.mk to enable crankshaft in V8. Note that Crankshaft and snapshotting cannot currently be used at the same time. For now, leave Crankshaft disabled by default. Change-Id: I84fcc02882e1b16cd0bc783d778ffbcc4531c868
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index c69a2ccd..1c9ceb59 100644
--- a/Android.mk
+++ b/Android.mk
@@ -30,6 +30,13 @@ include $(CLEAR_VARS)
# Build libv8 and v8shell
ifeq ($(TARGET_ARCH),arm)
ENABLE_V8_SNAPSHOT = true
+ ENABLE_V8_CRANKSHAFT = false
+ ifeq ($(ENABLE_V8_CRANKSHAFT),true)
+ ifeq ($(ENABLE_V8_SNAPSHOT),true)
+ # Snapshotting and crankshaft do not work well together right now.
+ $(error Cannot build V8 with both crankshaft and snapshotting)
+ endif
+ endif
include $(BASE_PATH)/Android.mksnapshot.mk
include $(BASE_PATH)/Android.libv8.mk
include $(BASE_PATH)/Android.v8shell.mk