summaryrefslogtreecommitdiffstats
path: root/V8Binding
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-07-07 13:55:58 -0700
committerFeng Qian <fqian@google.com>2009-07-07 13:57:14 -0700
commit32098f282b67ca44ab4d508df370d4c2bf81c2b4 (patch)
treecfacf62a20d70248d34b1a498954179b8553fcbf /V8Binding
parentab1813217b89b0a85305f1411800a1c7805864b5 (diff)
downloadexternal_webkit-32098f282b67ca44ab4d508df370d4c2bf81c2b4.zip
external_webkit-32098f282b67ca44ab4d508df370d4c2bf81c2b4.tar.gz
external_webkit-32098f282b67ca44ab4d508df370d4c2bf81c2b4.tar.bz2
Separate V8 logging from debugging flags.
Support both ENABLE_V8_LOGGING_AND_PROFILING, DEBUG_V8 flags. To enable logging, one can set JS flags to --logfile /sdcard/v8.log --log_gc (or other options).
Diffstat (limited to 'V8Binding')
-rw-r--r--V8Binding/Android.libv8.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/V8Binding/Android.libv8.mk b/V8Binding/Android.libv8.mk
index 8bf69fb..a81008f 100644
--- a/V8Binding/Android.libv8.mk
+++ b/V8Binding/Android.libv8.mk
@@ -74,8 +74,12 @@ ifeq ($(TARGET_ARCH),x86)
LOCAL_CFLAGS += -DV8_TARGET_ARCH_IA32
endif
+ifeq ($(ENABLE_V8_LOGGING_AND_PROFILING),true)
+ LOCAL_CFLAGS += -DENABLE_LOGGING_AND_PROFILING
+endif
+
ifeq ($(DEBUG_V8),true)
- LOCAL_CFLAGS += -DENABLE_LOGGING_AND_PROFILING -DDEBUG -UNDEBUG
+ LOCAL_CFLAGS += -DDEBUG -UNDEBUG
endif
LOCAL_C_INCLUDES += $(LOCAL_PATH)/v8/src