Commit 614906ed authored by sammc's avatar sammc Committed by Commit bot

Define _FORTIFY_SOURCE=2 under the same conditions in gn as gyp.

Review URL: https://codereview.chromium.org/1127993006

Cr-Commit-Position: refs/heads/master@{#330685}
parent 6c7398af
...@@ -643,7 +643,7 @@ config("chromium_code") { ...@@ -643,7 +643,7 @@ config("chromium_code") {
"__STDC_FORMAT_MACROS", "__STDC_FORMAT_MACROS",
] ]
if (using_sanitizer) { if (!using_sanitizer && (!is_linux || !is_clang || is_official_build)) {
# _FORTIFY_SOURCE isn't really supported by Clang now, see # _FORTIFY_SOURCE isn't really supported by Clang now, see
# http://llvm.org/bugs/show_bug.cgi?id=16821. # http://llvm.org/bugs/show_bug.cgi?id=16821.
# It seems to work fine with Ubuntu 12 headers though, so use it in # It seems to work fine with Ubuntu 12 headers though, so use it in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment