x86emul/test: correct compiler checking and avoid it when merely cleaning

The error messages that the compiler may emit can be confusing.

The check was also the wrong way round in case multiple make targets are
specified: We want to do the check whenever targets other than the running
and cleaning ones are specified.

Fixes: 05f4cc2192 ("x86emul: suppress default test harness build with incapable compiler")
Fixes: d5997399b7 ("x86emul: suppress "not built" warning for test harness'es run targets")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: c482d1f59f
master date: 2025-11-24 11:28:47 +0100
This commit is contained in:
Jan Beulich committed 2025-11-25 16:10:10 +01:00
1 parent 6adf28094f
commit 5d002b7470
1 file changed
+1 -1
+1 -1
View File
@@ -98,7 +98,7 @@ avx512bw-opmask-vecs := 4 8
# partially even with older compilers.
TARGET-y := $(TARGET)
ifeq ($(filter run%,$(MAKECMDGOALS)),)
ifneq ($(filter-out run% clean% distclean,$(MAKECMDGOALS)),)
define isa-check-cc
TARGET-$(shell echo 'int i;' | $(CC) -x c -c -o /dev/null -m$(1) - || echo y) :=
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.