Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index 702049581c1d3a2407459faf0de26a5c351b426d..6c7ba4d30106f9f70d46d7bd56e773be93a07105 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -1,4 +1,4 @@ |
-# Copyright 2010 the V8 project authors. All rights reserved. |
+# Copyright 2011 the V8 project authors. All rights reserved. |
# Redistribution and use in source and binary forms, with or without |
# modification, are permitted provided that the following conditions are |
# met: |
@@ -46,23 +46,37 @@ |
'host_arch%': '<(host_arch)', |
'target_arch%': '<(host_arch)', |
'v8_target_arch%': '<(target_arch)', |
+ 'conditions': [ |
+ ['(target_arch=="arm" and host_arch!="arm") or \ |
+ (target_arch=="x64" and host_arch!="x64")', { |
+ 'want_separate_host_toolset': 1, |
+ }, { |
+ 'want_separate_host_toolset': 0, |
+ }], |
+ ], |
}, |
'target_defaults': { |
'default_configuration': 'Debug', |
+ 'defines': [ |
+ 'ENABLE_DEBUGGER_SUPPORT', |
+ ], |
'configurations': { |
'Debug': { |
'cflags': [ '-g', '-O0' ], |
- 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG' ], |
+ 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG', 'V8_ENABLE_CHECKS', |
+ 'OBJECT_PRINT' ], |
}, |
'Release': { |
- 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections' ], |
+ 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', |
+ '-ffunction-sections' ], |
}, |
}, |
}, |
'conditions': [ |
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
'target_defaults': { |
- 'cflags': [ '-Wall', '-pthread', '-fno-rtti', '-fno-exceptions' ], |
+ 'cflags': [ '-Wall', '-pthread', '-fno-rtti', '-fno-exceptions', |
+ '-pedantic' ], |
'ldflags': [ '-pthread', ], |
'conditions': [ |
[ 'target_arch=="ia32"', { |