Changes in meson/part/compiler_args/meson.build [c89ae25:18969ce] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
meson/part/compiler_args/meson.build
rc89ae25 r18969ce 60 60 '-Wall', 61 61 '-Wextra', 62 '-Werror-implicit-function-declaration', 62 63 '-Wwrite-strings', 63 64 '-Wunknown-pragmas', … … 68 69 69 70 '-ffunction-sections', 70 '-fdata-sections',71 71 '-fno-common', 72 '-fdebug-prefix-map=' + meson.source_root() + '/=', 73 '-fdebug-prefix-map=../../=', 72 '-fdebug-prefix-map=' + meson.source_root() + '=.', 74 73 ] 75 74 … … 88 87 89 88 if CONFIG_LINE_DEBUG 90 extra_common_flags += [ '-gdwarf- 5', '-g3' ]89 extra_common_flags += [ '-gdwarf-4', '-g3' ] 91 90 endif 92 91 93 92 extra_cflags = extra_common_flags + [ 94 93 '-Wmissing-prototypes', 95 '-Werror-implicit-function-declaration',96 94 97 95 '-Wno-missing-braces', … … 112 110 extra_cppflags = extra_common_flags + [ 113 111 '-fno-exceptions', 114 '-Wno-misleading-indentation',115 112 '-frtti', 116 113 ] … … 131 128 add_project_link_arguments(extra_cflags, language : [ lang ]) 132 129 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 in138 # "cannot find entry symbol _start; defaulting to 00000000004000b0"139 # thus the option is never supported alone. So when detecting we also140 # specify --entry=main so that the stub source provided by Meson is build141 # 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.