Why is meson interpreting my ccflags with the single quotes?

I'm editing a meson build file. a line that currently exists the the file is working perfectly.

if cc.has_argument('-Wno-format-truncation')                                                                                                                                                                                           
default_cflags += '-Wno-format-truncation'
endif

I've added a line because I want debug information:

default_cflags += '-ggdb -O0'

However, this is being interpreted with the single quotes, and breaking the make command.

-Wno-missing-field-initializers -D_GNU_SOURCE -march=native '-ggdb -O0' -DALLOW_EXPERIMENTAL_API -MD -MQ

Obviously, cc doesn't like this and is throwing an error. What is causing meson to interpret this output with the single quotes? I've tried double quotes and no quotes, but that throws other errors altogether.

Edit

This is a dpdk build file, so the compiler call is:

            executable('dpdk-' + name, sources,
                    include_directories: includes,
                    link_whole: link_whole_libs,
                    link_args: ldflags,
                    c_args: default_cflags,
                    dependencies: dep_objs)


from Recent Questions - Stack Overflow https://ift.tt/2XWGzQc
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation