From: Stefano Stabellini Subject: Re: [PATCH] prepend the include path of libvixl header files Date: Tue, 8 Jul 2014 12:55:58 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="1342847746-1126592026-1404820484=:27641" Return-path: In-Reply-To: Content-ID: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Peter Maydell Cc: "xen-devel@lists.xensource.com Devel" , Ian Campbell , Stefano Stabellini , Ian Jackson , QEMU Developers , C Fontana List-Id: xen-devel@lists.xenproject.org --1342847746-1126592026-1404820484=:27641 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: On Tue, 8 Jul 2014, Peter Maydell wrote: > On 7 July 2014 16:25, Stefano Stabellini > wrote: > > Currently the Makefile of disas/libvixl appends > > -I$(SRC_PATH)/disas/libvixl to QEMU_CFLAGS. As a consequence C++ files > > that #include "utils.h", such as disas/libvixl/a64/instructions-a64.cc, > > are going to look for utils.h on all the other include paths first. > > > > When building QEMU as part of the Xen make system, another unrelated > > utils.h file is going to be chosen for inclusion, causing a build > > failure: > > > > In file included from disas/libvixl/a64/instructions-a64.cc:27:0: > > /qemu/disas/libvixl/a64/instructions-a64.h:88:64: error: > > =E2=80=98rawbits_to_float=E2=80=99 was not declared in this scope > > const float kFP32PositiveInfinity =3D rawbits_to_float(0x7f800000); > > > > Fix the problem by prepending (rather than appending) the libvixl > > include path to QEMU_CFLAGS. > > > > Signed-off-by: Stefano Stabellini > > > > --- > > > > diff --git a/disas/libvixl/Makefile.objs b/disas/libvixl/Makefile.objs > > index 0adb3ce..17e6565 100644 > > --- a/disas/libvixl/Makefile.objs > > +++ b/disas/libvixl/Makefile.objs > > @@ -3,6 +3,6 @@ libvixl_OBJS =3D utils.o \ > > a64/decoder-a64.o \ > > a64/disasm-a64.o > > > > -$(addprefix $(obj)/,$(libvixl_OBJS)): QEMU_CFLAGS +=3D -I$(SRC_PATH)/d= isas/libvixl > > +$(addprefix $(obj)/,$(libvixl_OBJS)): QEMU_CFLAGS :=3D -I$(SRC_PATH)/d= isas/libvixl $(QEMU_CFLAGS) > > > > common-obj-$(CONFIG_ARM_A64_DIS) +=3D $(libvixl_OBJS) >=20 > Reviewed-by: Peter Maydell >=20 > I spent a few moments wondering if the conversion of > QEMU_CFLAGS from recursively-expanded to simply-expanded > would be a problem, but because this is a target-specific > variable it's pretty much going to be expanded at the same > point that it would be anyhow. =20 Thanks Peter. Are you going to pick it up or do you want me to send a pull request? --1342847746-1126592026-1404820484=:27641 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --1342847746-1126592026-1404820484=:27641--