Date: Mon, 13 Sep 2004 11:50:12 +0200 From: "Simon L. Nielsen" <simon@FreeBSD.org> To: Ruslan Ermilov <ru@FreeBSD.org> Cc: Dima Dorfman <dd@FreeBSD.org> Subject: Re: One method of compile testing WARNS changes on several architectures Message-ID: <20040913095012.GB766@zaphod.nitro.dk> In-Reply-To: <20040913091943.GB31628@ip.net.ua> References: <200409130834.i8D8Y2ls032527@freefall.freebsd.org> <20040913091943.GB31628@ip.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On 2004.09.13 12:19:43 +0300, Ruslan Ermilov wrote: > To test with a minimal time effort, you do this (while in src/): > > $ make toolchain TARGET_ARCH=<arch> > > This step should be repeated for each architecture to be tested > against. This will take a lot of time, but an order less than a > full buildworld. > > $ make _depend everything SUBDIR_OVERRIDER=<bit> TARGET_ARCH=<arch> > > (The underscore before "depend" is intentional.) <bit> is a part > of src/ tree that you want to test (can be a list), and <arch> > should be looped over with each architecture to be tested against. > > Example. To test if a changed bin/cat still compiles cleanly under > Alpha and AMD64, e.g. due to you clamping down the WARNS level, you > do this: > > 1. Prepare the toolchains: > > make toolchain TARGET_ARCH=alpha > make toolchain TARGET_ARCH=amd64 > > 2. Test changes: > > make _depend everything SUBDIR_OVERRIDE=bin/cat TARGET_ARCH=alpha > make _depend everything SUBDIR_OVERRIDE=bin/cat TARGET_ARCH=amd64 > > 3. You can then modify cat's sources/makefile, and repeat step #2. > > P.S. The syntax for PC98 would be "TARGET_ARCH=i386 TARGET=pc98". This seems like something that IMO really should be put in some documentation. Perhaps the Developers Handbook? (I can Docbook'ify it if needed). -- Simon L. Nielsen FreeBSD Documentation Team [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBRW1Uh9pcDSc1mlERAuQIAJ9ryDvPFAu1+hMqHho/vqB5Ui51owCfY+4t VVjlrz7X6b3zHbdVbEVlxRI= =ldJ6 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040913095012.GB766>
