]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
build: allow to test clang .include without asm symlink
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 27 Feb 2020 14:46:14 +0000 (15:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 27 Feb 2020 14:46:14 +0000 (15:46 +0100)
The clang test for "asm()-s support .include." needs to be modified
because the symbolic link asm -> asm-x86 may not exist when the test
is runned. Since it's an x86 test, we don't need the link.

This will be an issue with the following patch "xen/build: have the
root Makefile generates the CFLAGS".

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/Rules.mk

index e69b8e697cc0efcef7347e800a565a6c7b9b0832..4b7ab784670ce479a01e7ffef3ffabf29b6296b3 100644 (file)
@@ -26,7 +26,7 @@ $(call as-option-add,CFLAGS,CC,".L0: .L1: .skip (.L1 - .L0)",,\
                      -no-integrated-as)
 
 # Check whether clang asm()-s support .include.
-$(call as-option-add,CFLAGS,CC,".include \"asm/indirect_thunk_asm.h\"",,\
+$(call as-option-add,CFLAGS,CC,".include \"asm-x86/indirect_thunk_asm.h\"",,\
                      -no-integrated-as)
 
 # Check whether clang keeps .macro-s between asm()-s: