Don't mess with flags when using plain buildtype.

Sun, 14 Oct 2018 19:40:06 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Sun, 14 Oct 2018 19:40:06 -0400
changeset 39247
ee65e9be3a5f
parent 39246
39889ac56150
child 39249
917e9d27be24
child 39319
4721f354bee7

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
 

mercurial