|
@@ -601,6 +601,10 @@ if get_option('tsan')
|
|
qemu_ldflags = ['-fsanitize=thread'] + qemu_ldflags
|
|
qemu_ldflags = ['-fsanitize=thread'] + qemu_ldflags
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+if get_option('debug') and get_option('split_debug')
|
|
|
|
+ qemu_cflags += '-gsplit-dwarf'
|
|
|
|
+endif
|
|
|
|
+
|
|
# Detect support for PT_GNU_RELRO + DT_BIND_NOW.
|
|
# Detect support for PT_GNU_RELRO + DT_BIND_NOW.
|
|
# The combination is known as "full relro", because .got.plt is read-only too.
|
|
# The combination is known as "full relro", because .got.plt is read-only too.
|
|
qemu_ldflags += cc.get_supported_link_arguments('-Wl,-z,relro', '-Wl,-z,now')
|
|
qemu_ldflags += cc.get_supported_link_arguments('-Wl,-z,relro', '-Wl,-z,now')
|
|
@@ -4583,6 +4587,8 @@ if have_rust
|
|
summary_info += {'bindgen': bindgen.full_path()}
|
|
summary_info += {'bindgen': bindgen.full_path()}
|
|
summary_info += {'bindgen version': bindgen.version()}
|
|
summary_info += {'bindgen version': bindgen.version()}
|
|
endif
|
|
endif
|
|
|
|
+# option_cflags is purely for the summary display, meson will pass
|
|
|
|
+# -g/-O options directly
|
|
option_cflags = (get_option('debug') ? ['-g'] : [])
|
|
option_cflags = (get_option('debug') ? ['-g'] : [])
|
|
if get_option('optimization') != 'plain'
|
|
if get_option('optimization') != 'plain'
|
|
option_cflags += ['-O' + get_option('optimization')]
|
|
option_cflags += ['-O' + get_option('optimization')]
|