Build with fortify source on clang as well

This commit is contained in:
Kovid Goyal 2020-02-13 11:20:57 +05:30
parent 1a1638cc7f
commit 64567646d9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -204,7 +204,7 @@ def init_env(
if ccver >= (5, 0):
df += ' -Og'
float_conversion = '-Wfloat-conversion'
fortify_source = '-D_FORTIFY_SOURCE=2' if cc == 'gcc' else ''
fortify_source = '-D_FORTIFY_SOURCE=2'
optimize = df if debug or sanitize else '-O3'
sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set()
cppflags = os.environ.get(