summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-01 19:29:46 +0000
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-01 19:29:46 +0000
commit0a54160a96e196f825077ded624cbedc84199484 (patch)
tree21fd846f747e3094c4df7567071f42cfe6ef30b6
parent4a508afd459a7e2e8930719d50303a26d07bceab (diff)
downloadgyp-0a54160a96e196f825077ded624cbedc84199484.tar.gz
gyp rules for ubsan
BUG=skia:2481 R=bungeman@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/258393004 git-svn-id: http://skia.googlecode.com/svn/trunk/gyp@14511 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--common_conditions.gypi10
1 files changed, 10 insertions, 0 deletions
diff --git a/common_conditions.gypi b/common_conditions.gypi
index 39ee953..817c4a1 100644
--- a/common_conditions.gypi
+++ b/common_conditions.gypi
@@ -413,6 +413,16 @@
}],
],
}],
+ [ 'skia_sanitizer == "undefined"', {
+ 'cflags': [ '-fPIC' ],
+ 'cflags_cc!': ['-fno-rtti'],
+ 'target_conditions': [
+ [ '_type == "executable"', {
+ 'cflags': [ '-fPIE' ],
+ 'ldflags': [ '-pie' ],
+ }],
+ ],
+ }],
],
}],
[ 'skia_clang_build', {