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