All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH] x86emul: suppress "not built" warning for test harness for run targets
@ 2020-03-20  7:08 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2020-03-20  7:08 UTC (permalink / raw)
  To: xen-devel; +Cc: Andrew Cooper, Wei Liu, Roger Pau Monné

The run* targets can be used to test whatever the tool chain is capable
of building, as long as at least the main harness source file builds.
Don't issue the warning in this case. While looking into this I also
noticed the wording of the respective comment isn't quite right, which
therefore gets altered at the same time.

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/tools/tests/x86_emulator/Makefile
+++ b/tools/tests/x86_emulator/Makefile
@@ -97,7 +97,7 @@ avx512dq-opmask-vecs := 1 2
 avx512bw-opmask-vecs := 4 8
 
 # Suppress building by default of the harness if the compiler can't deal
-# with any of the extensions used.  Don't alter the "run" target dependencies
+# with some of the extensions used.  Don't alter the "run" target dependencies
 # though, as this target needs to be specified manually, and things may work
 # partially even with older compilers.
 TARGET-y := $(TARGET)
@@ -112,7 +112,7 @@ $(foreach flavor,$(SIMD) $(FMA),$(eval $
 # only after AVX512F and some of its extensions.
 TARGET-$(shell echo 'asm("{evex} vzeroall");' | $(CC) -x c -c -o /dev/null - || echo y) :=
 
-ifeq ($(TARGET-y),)
+ifeq ($(TARGET-y)$(filter run%,$(MAKECMDGOALS)),)
 $(warning Test harness not built, use newer compiler than "$(CC)" (version $(shell $(CC) -dumpversion)) and an "{evex}" capable assembler)
 endif
 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-20  7:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-20  7:08 [Xen-devel] [PATCH] x86emul: suppress "not built" warning for test harness for run targets Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.