Skip to contentSkip to conversation

meson: fix "static build" entry in summary

PATCH In review Paolo Bonzini 2 participants 4 messages Jun 7, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: fix "static build" entry in summary

Fixes a0cbd2e8496 ("meson: use prefer_static option", 2023-05-18)
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
index 553c8e0b9c5..34d0444ffbb 100644
@@ -4088,7 +4088,7 @@ summary_info += {'QEMU_LDFLAGS':      ' '.join(qemu_ldflags)}
 summary_info += {'profiler':          get_option('profiler')}
 summary_info += {'link-time optimization (LTO)': get_option('b_lto')}
 summary_info += {'PIE':               get_option('b_pie')}
-summary_info += {'static build':      config_host.has_key('CONFIG_STATIC')}
+summary_info += {'static build':      get_optin('prefer_static')}
 summary_info += {'malloc trim support': has_malloc_trim}
 summary_info += {'membarrier':        have_membarrier}
 summary_info += {'debug graph lock':  get_option('debug_graph_lock')}
Signature · 1 line
2.40.1
#1 lore raw
Quoted 11 lines · Paolo Bonzini
Fixes a0cbd2e8496 ("meson: use prefer_static option", 2023-05-18)
---
  meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +0 -0
index 553c8e0b9c5..34d0444ffbb 100644

meson.build summary_info += {'QEMU_LDFLAGS': ' '.join(qemu_ldflags)} · line 4091

Quoted 5 lines
meson.build +1 -1
@@ -4088,7 +4088,7 @@ summary_info += {'QEMU_LDFLAGS':      ' '.join(qemu_ldflags)}
  summary_info += {'profiler':          get_option('profiler')}
  summary_info += {'link-time optimization (LTO)': get_option('b_lto')}
  summary_info += {'PIE':               get_option('b_pie')}
-summary_info += {'static build':      config_host.has_key('CONFIG_STATIC')}
+summary_info += {'static build':      get_optin('prefer_static')}

Typo 'get_option'.

Quoted 3 lines
meson.build +0 -0
  summary_info += {'malloc trim support': has_malloc_trim}
  summary_info += {'membarrier':        have_membarrier}
  summary_info += {'debug graph lock':  get_option('debug_graph_lock')}
#2 lore raw
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 6 lines · Paolo Bonzini
Fixes a0cbd2e8496 ("meson: use prefer_static option", 2023-05-18)
---
  meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

meson.build summary_info += {'QEMU_LDFLAGS': ' '.join(qemu_ldflags)} · line 4091

Quoted 10 lines
meson.build +1 -1
index 553c8e0b9c5..34d0444ffbb 100644
@@ -4088,7 +4088,7 @@ summary_info += {'QEMU_LDFLAGS':      ' '.join(qemu_ldflags)}
  summary_info += {'profiler':          get_option('profiler')}
  summary_info += {'link-time optimization (LTO)': get_option('b_lto')}
  summary_info += {'PIE':               get_option('b_pie')}
-summary_info += {'static build':      config_host.has_key('CONFIG_STATIC')}
+summary_info += {'static build':      get_optin('prefer_static')}

Typo 'get_option'.

Yeah, sent after testing but before committing the obvious fix. :(

Paolo

Quoted 4 lines
Quoted 3 lines
meson.build +0 -0
  summary_info += {'malloc trim support': has_malloc_trim}
  summary_info += {'membarrier':        have_membarrier}
  summary_info += {'debug graph lock':  get_option('debug_graph_lock')}
#3 lore raw
Quoted 23 lines · Paolo Bonzini
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 6 lines · Paolo Bonzini
Fixes a0cbd2e8496 ("meson: use prefer_static option", 2023-05-18)
---
   meson.build | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines

meson.build summary_info += {'QEMU_LDFLAGS': ' '.join(qemu_ldflags)} · line 4091

Quoted 10 lines
meson.build +1 -1
index 553c8e0b9c5..34d0444ffbb 100644
@@ -4088,7 +4088,7 @@ summary_info += {'QEMU_LDFLAGS':      ' '.join(qemu_ldflags)}
   summary_info += {'profiler':          get_option('profiler')}
   summary_info += {'link-time optimization (LTO)': get_option('b_lto')}
   summary_info += {'PIE':               get_option('b_pie')}
-summary_info += {'static build':      config_host.has_key('CONFIG_STATIC')}
+summary_info += {'static build':      get_optin('prefer_static')}

Typo 'get_option'.

Quoted 1 line

Yeah, sent after testing but before committing the obvious fix. :(

So with the typo fixed:

:)