mirror of https://github.com/djcb/mu.git
build: add some fortification flags
This commit is contained in:
parent
149ec143ba
commit
8e52ef6a7c
|
@ -58,10 +58,11 @@ extra_flags = [
|
||||||
'-Wformat-security',
|
'-Wformat-security',
|
||||||
'-Wformat=2',
|
'-Wformat=2',
|
||||||
'-Wstack-protector',
|
'-Wstack-protector',
|
||||||
|
'-fstack-protector-strong',
|
||||||
'-Wno-switch-enum',
|
'-Wno-switch-enum',
|
||||||
# assuming these are false alarm... (in fmt, with gcc13):
|
# assuming these are false alarm... (in fmt, with gcc13):
|
||||||
'-Wno-array-bounds',
|
'-Wno-array-bounds',
|
||||||
'-Wno-stringop-overflow']
|
'-Wno-stringop-overflow',]
|
||||||
|
|
||||||
if (cxx.get_id() == 'clang')
|
if (cxx.get_id() == 'clang')
|
||||||
extra_flags += [
|
extra_flags += [
|
||||||
|
@ -77,6 +78,7 @@ extra_cpp_flags= [
|
||||||
|
|
||||||
if get_option('buildtype') == 'debug'
|
if get_option('buildtype') == 'debug'
|
||||||
extra_flags += [
|
extra_flags += [
|
||||||
|
'-D_GLIBCXX_ASSERTIONS',
|
||||||
'-ggdb',
|
'-ggdb',
|
||||||
'-g3']
|
'-g3']
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue