Index: build/standalone.gypi |
diff --git a/build/standalone.gypi b/build/standalone.gypi |
index cd7847b34979920883063c3f3d622ba495f10b83..7c967206734d779b3caef80833bb91392a61f6f9 100644 |
--- a/build/standalone.gypi |
+++ b/build/standalone.gypi |
@@ -243,6 +243,7 @@ |
'-Wall', |
'-Werror', |
'-Wextra', |
+ '-Wshorten-64-to-32', |
], |
'cflags+': [ |
# Clang considers the `register` keyword as deprecated, but |
@@ -389,6 +390,11 @@ |
'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], |
'ldflags': [ '-pthread', ], |
'conditions': [ |
+ # TODO(arm64): It'd be nice to enable this for arm64 as well, |
+ # but the Assembler requires some serious fixing first. |
+ [ 'clang==1 and v8_target_arch=="x64"', { |
+ 'cflags': [ '-Wshorten-64-to-32' ], |
+ }], |
[ 'host_arch=="ppc64" and OS!="aix"', { |
'cflags': [ '-mminimal-toc' ], |
}], |