aboutsummaryrefslogtreecommitdiff
path: root/scripts/make-config-poison.sh
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2023-02-06 11:20:37 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-02-27 09:18:56 +0100
commit1248a15965b77f9b9b5d6efcd9138ae299fbc8c2 (patch)
tree5debc1aeb6d0646a6f9ee13b7eb25577a003d6ba /scripts/make-config-poison.sh
parent9ad2ba6e8e7fc195d0dd0b76ab38bd2fceb1bdd4 (diff)
meson: Avoid duplicates in generated config-poison.h again
Commit eed56e9a89f "configure, meson: move config-poison.h to meson" lost a "| sort -u". Restore it. config-poison shrinks from ~4500 to ~700 lines when all targets are enabled. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Tested-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20230206102037.3621709-1-armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/make-config-poison.sh')
-rwxr-xr-xscripts/make-config-poison.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/make-config-poison.sh b/scripts/make-config-poison.sh
index d222a04304..1892854261 100755
--- a/scripts/make-config-poison.sh
+++ b/scripts/make-config-poison.sh
@@ -13,4 +13,4 @@ exec sed -n \
-e 's///' \
-e 's/ .*//' \
-e 's/^/#pragma GCC poison /p' \
- -e '}' "$@"
+ -e '}' "$@" | sort -u