From owner-freebsd-current@FreeBSD.ORG Mon Sep 13 09:50:15 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31D9116A4CE; Mon, 13 Sep 2004 09:50:15 +0000 (GMT) Received: from zaphod.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 664DB43D1F; Mon, 13 Sep 2004 09:50:14 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id F23DE11AB1; Mon, 13 Sep 2004 11:50:12 +0200 (CEST) Date: Mon, 13 Sep 2004 11:50:12 +0200 From: "Simon L. Nielsen" To: Ruslan Ermilov Message-ID: <20040913095012.GB766@zaphod.nitro.dk> References: <200409130834.i8D8Y2ls032527@freefall.freebsd.org> <20040913091943.GB31628@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline In-Reply-To: <20040913091943.GB31628@ip.net.ua> User-Agent: Mutt/1.5.6i cc: current@FreeBSD.org cc: Dima Dorfman Subject: Re: One method of compile testing WARNS changes on several architectures X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2004 09:50:15 -0000 --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2004.09.13 12:19:43 +0300, Ruslan Ermilov wrote: > To test with a minimal time effort, you do this (while in src/): >=20 > $ make toolchain TARGET_ARCH=3D >=20 > 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. >=20 > $ make _depend everything SUBDIR_OVERRIDER=3D TARGET_ARCH=3D >=20 > (The underscore before "depend" is intentional.) is a part > of src/ tree that you want to test (can be a list), and > should be looped over with each architecture to be tested against. >=20 > 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: >=20 > 1. Prepare the toolchains: >=20 > make toolchain TARGET_ARCH=3Dalpha > make toolchain TARGET_ARCH=3Damd64 >=20 > 2. Test changes: >=20 > make _depend everything SUBDIR_OVERRIDE=3Dbin/cat TARGET_ARCH=3Dalpha > make _depend everything SUBDIR_OVERRIDE=3Dbin/cat TARGET_ARCH=3Damd64 >=20 > 3. You can then modify cat's sources/makefile, and repeat step #2. >=20 > P.S. The syntax for PC98 would be "TARGET_ARCH=3Di386 TARGET=3Dpc98". This seems like something that IMO really should be put in some documentation. Perhaps the Developers Handbook? (I can Docbook'ify it if needed). --=20 Simon L. Nielsen FreeBSD Documentation Team --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBRW1Uh9pcDSc1mlERAuQIAJ9ryDvPFAu1+hMqHho/vqB5Ui51owCfY+4t VVjlrz7X6b3zHbdVbEVlxRI= =ldJ6 -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V--