[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] x86emul: suppress "not built" warning for test harness'es run targets



commit d5997399b7ade650a7c894bf848a7e9463ae80e7
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Fri Apr 3 10:48:39 2020 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Fri Apr 3 10:48:39 2020 +0200

    x86emul: suppress "not built" warning for test harness'es run targets
    
    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 probe the tools chain, in particular to avoid issuing 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@xxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 tools/tests/x86_emulator/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/tests/x86_emulator/Makefile 
b/tools/tests/x86_emulator/Makefile
index a79f13f383..222c1b11e2 100644
--- a/tools/tests/x86_emulator/Makefile
+++ b/tools/tests/x86_emulator/Makefile
@@ -97,11 +97,13 @@ 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)
 
+ifeq ($(filter run%,$(MAKECMDGOALS)),)
+
 define simd-check-cc
 TARGET-$(shell echo 'int i;' | $(CC) -x c -c -o /dev/null -m$(1) - || echo y) 
:=
 endef
@@ -116,6 +118,8 @@ ifeq ($(TARGET-y),)
 $(warning Test harness not built, use newer compiler than "$(CC)" (version 
$(shell $(CC) -dumpversion)) and an "{evex}" capable assembler)
 endif
 
+endif
+
 all: $(TARGET-y)
 
 # For AVX and later, have the compiler avoid XMM0 to widen coverage of
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.