diff options
Diffstat (limited to 'chromium/v8/build/toolchain.gypi')
-rw-r--r-- | chromium/v8/build/toolchain.gypi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/v8/build/toolchain.gypi b/chromium/v8/build/toolchain.gypi index 8a26cc276f5..2dd4a502357 100644 --- a/chromium/v8/build/toolchain.gypi +++ b/chromium/v8/build/toolchain.gypi @@ -72,6 +72,10 @@ # Some versions of GCC 4.5 seem to need -fno-strict-aliasing. 'v8_no_strict_aliasing%': 0, + # V8 needs support for illegal null this pointers, and must disable + # optimizations in GCC 6 that relies on correct behavior. + 'v8_no_delete_null_pointer_checks%': 0, + # Chrome needs this definition unconditionally. For standalone V8 builds, # it's handled in build/standalone.gypi. 'want_separate_host_toolset%': 1, @@ -1066,6 +1070,9 @@ [ 'v8_no_strict_aliasing==1', { 'cflags': [ '-fno-strict-aliasing' ], }], + [ 'v8_no_delete_null_pointer_checks==1', { + 'cflags_cc': [ '-fno-delete-null-pointer-checks' ], + }], ], # conditions }], ['OS=="solaris"', { |