Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • meson/part/compiler_args/meson.build

    rc89ae25 r18969ce  
    6060        '-Wall',
    6161        '-Wextra',
     62        '-Werror-implicit-function-declaration',
    6263        '-Wwrite-strings',
    6364        '-Wunknown-pragmas',
     
    6869
    6970        '-ffunction-sections',
    70         '-fdata-sections',
    7171        '-fno-common',
    72         '-fdebug-prefix-map=' + meson.source_root() + '/=',
    73         '-fdebug-prefix-map=../../=',
     72        '-fdebug-prefix-map=' + meson.source_root() + '=.',
    7473]
    7574
     
    8887
    8988if CONFIG_LINE_DEBUG
    90         extra_common_flags += [ '-gdwarf-5', '-g3' ]
     89        extra_common_flags += [ '-gdwarf-4', '-g3' ]
    9190endif
    9291
    9392extra_cflags = extra_common_flags + [
    9493        '-Wmissing-prototypes',
    95         '-Werror-implicit-function-declaration',
    9694
    9795        '-Wno-missing-braces',
     
    112110extra_cppflags = extra_common_flags + [
    113111        '-fno-exceptions',
    114         '-Wno-misleading-indentation',
    115112        '-frtti',
    116113]
     
    131128        add_project_link_arguments(extra_cflags, language : [ lang ])
    132129endforeach
    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.