diff options
Diffstat (limited to 'common_conditions.gypi')
-rw-r--r-- | common_conditions.gypi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common_conditions.gypi b/common_conditions.gypi index 77dd925..6ae76a6 100644 --- a/common_conditions.gypi +++ b/common_conditions.gypi @@ -31,6 +31,7 @@ 'AdditionalOptions': [ '/MP', ], }, 'VCLinkerTool': { + 'LargeAddressAware': 2, # 2 means "Yes, please let me use more RAM on 32-bit builds." 'AdditionalDependencies': [ 'OpenGL32.lib', 'usp10.lib', @@ -411,6 +412,16 @@ }], ], }], + [ 'skia_sanitizer == "undefined"', { + 'cflags': [ '-fPIC' ], + 'cflags_cc!': ['-fno-rtti'], + 'target_conditions': [ + [ '_type == "executable"', { + 'cflags': [ '-fPIE' ], + 'ldflags': [ '-pie' ], + }], + ], + }], ], }], [ 'skia_clang_build', { |