summaryrefslogtreecommitdiffstats
path: root/build/common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'build/common.gypi')
-rw-r--r--build/common.gypi16
1 files changed, 3 insertions, 13 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 11e81a3..78e8eff 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3679,23 +3679,13 @@
# Chrome OS enables -fstack-protector-strong via its build wrapper,
# and we want to avoid overriding this, so stack-protector is only
# enabled when not building on Chrome OS.
+ # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc
+ # supports it.
'target_defaults': {
'cflags': [
+ '-fstack-protector',
'--param=ssp-buffer-size=4',
],
- 'conditions': [
- ['clang==1', {
- 'cflags': [
- '-fstack-protector-strong',
- ],
- }, {
- # TODO(phajdan.jr): Use -fstack-protector-strong when our gcc
- # supports it.
- 'cflags': [
- '-fstack-protector',
- ],
- }],
- ],
},
}],
['os_posix==1 and OS=="linux"', {