On 3/4/25 14:24, Alex Bennée wrote:
-option_cflags = (get_option('debug') ? ['-g'] : [])
+option_cflags = []
+if get_option('debug')
+  option_cflags += [get_option('split_debug') ? ['-gsplit-dwarf'] : ['-g']]
+endif

I think you've got too many [] there.
I don't think you need any of them, actually -- += will append the scalar string to the (empty) array.


r~

Reply via email to