Sun, 14 Oct 2018 19:40:06 -0400
Don't mess with flags when using plain buildtype.
| meson.build | file | annotate | diff | comparison | revisions |
--- a/meson.build Fri Oct 12 02:36:41 2018 +0000 +++ b/meson.build Sun Oct 14 19:40:06 2018 -0400 @@ -679,7 +679,7 @@ '-DFINCH_DISABLE_DEPRECATED', '-DGNT_DISABLE_DEPRECATED', language : 'c') -if compiler.get_id() == 'gcc' +if get_option('buildtype') != 'plain' and compiler.get_id() == 'gcc' # We enable -Wall later. # If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. # This leads to warnings we don't want. @@ -735,7 +735,7 @@ # ]) endif endif -if SUNCC +if get_option('buildtype') != 'plain' and SUNCC add_project_arguments('-features=extensions', language : 'c') endif