Changes in meson/part/compiler_args/meson.build [18969ce:c89ae25] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
meson/part/compiler_args/meson.build
r18969ce rc89ae25 60 60 '-Wall', 61 61 '-Wextra', 62 '-Werror-implicit-function-declaration',63 62 '-Wwrite-strings', 64 63 '-Wunknown-pragmas', … … 69 68 70 69 '-ffunction-sections', 70 '-fdata-sections', 71 71 '-fno-common', 72 '-fdebug-prefix-map=' + meson.source_root() + '=.', 72 '-fdebug-prefix-map=' + meson.source_root() + '/=', 73 '-fdebug-prefix-map=../../=', 73 74 ] 74 75 … … 87 88 88 89 if CONFIG_LINE_DEBUG 89 extra_common_flags += [ '-gdwarf- 4', '-g3' ]90 extra_common_flags += [ '-gdwarf-5', '-g3' ] 90 91 endif 91 92 92 93 extra_cflags = extra_common_flags + [ 93 94 '-Wmissing-prototypes', 95 '-Werror-implicit-function-declaration', 94 96 95 97 '-Wno-missing-braces', … … 110 112 extra_cppflags = extra_common_flags + [ 111 113 '-fno-exceptions', 114 '-Wno-misleading-indentation', 112 115 '-frtti', 113 116 ] … … 128 131 add_project_link_arguments(extra_cflags, language : [ lang ]) 129 132 endforeach 133 134 # This flag is needed at several places, hence we define it here. 135 # 136 # For backwards compatibility we try to detect --no-warn-rwx-segments. 137 # However, the autodetection done by Meson also results in 138 # "cannot find entry symbol _start; defaulting to 00000000004000b0" 139 # thus the option is never supported alone. So when detecting we also 140 # specify --entry=main so that the stub source provided by Meson is build 141 # correctly. 142 ldflags_ignore_rwx_segments = [] 143 if cc.has_link_argument('-Wl,--no-warn-rwx-segments,--entry=main') 144 ldflags_ignore_rwx_segments += ['-Wl,--no-warn-rwx-segments'] 145 endif
Note:
See TracChangeset
for help on using the changeset viewer.