[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/7] meson: put cross compiler info in a separate section
From: |
Paolo Bonzini |
Subject: |
[PATCH 1/7] meson: put cross compiler info in a separate section |
Date: |
Tue, 7 Jun 2022 11:40:25 +0200 |
While at it, remove a dead assignment and simply inline the value of the
"target" variable, which is used just once.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
meson.build | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/meson.build b/meson.build
index 21cd949082..3f38b3ee4f 100644
--- a/meson.build
+++ b/meson.build
@@ -3740,21 +3740,24 @@ endif
summary_info += {'strip binaries': get_option('strip')}
summary_info += {'sparse': sparse}
summary_info += {'mingw32 support': targetos == 'windows'}
+summary(summary_info, bool_yn: true, section: 'Compilation')
# snarf the cross-compilation information for tests
+summary_info = {}
+have_cross = false
foreach target: target_dirs
tcg_mak = meson.current_build_dir() / 'tests/tcg' / 'config-' + target +
'.mak'
if fs.exists(tcg_mak)
config_cross_tcg = keyval.load(tcg_mak)
- target = config_cross_tcg['TARGET_NAME']
- compiler = ''
if 'CC' in config_cross_tcg
- summary_info += {target + ' tests': config_cross_tcg['CC']}
+ summary_info += {config_cross_tcg['TARGET_NAME']: config_cross_tcg['CC']}
+ have_cross = true
endif
- endif
+ endif
endforeach
-
-summary(summary_info, bool_yn: true, section: 'Compilation')
+if have_cross
+ summary(summary_info, bool_yn: true, section: 'Cross compilers')
+endif
# Targets and accelerators
summary_info = {}
--
2.36.1
- [PATCH 0/7] More tests/tcg cleanups, Paolo Bonzini, 2022/06/07
- [PATCH 3/7] configure: allow more host/target combos to use the host compiler, Paolo Bonzini, 2022/06/07
- [PATCH 4/7] configure: move tests/tcg/Makefile.prereqs to root build directory, Paolo Bonzini, 2022/06/07
- [PATCH 6/7] tests: simplify Makefile invocation for tests/tcg, Paolo Bonzini, 2022/06/07
- [PATCH 5/7] configure: store container engine in config-host.mak, Paolo Bonzini, 2022/06/07
- [PATCH 2/7] build: include pc-bios/ part in the ROMS variable, Paolo Bonzini, 2022/06/07
- [PATCH 1/7] meson: put cross compiler info in a separate section,
Paolo Bonzini <=
- [PATCH 7/7] tests/tcg: remove -f from Makefile invocation, Paolo Bonzini, 2022/06/07
- Re: [PATCH 0/7] More tests/tcg cleanups, Paolo Bonzini, 2022/06/07