From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id A2E623858C2B; Fri, 23 Jun 2023 06:18:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2E623858C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687501083; bh=tjsrmMJB+znQ2vUWAt7wmeUTlsFA0YuYp/4DRUNeYqg=; h=From:To:Subject:Date:From; b=sYgr/N+PPzayRdc4AuDUfp/yfkBKlPWDloN7MY6aS3fAPTAmJJ0N2Cw6BNPGm0W5m mhSN3PzA4SgqoCWU4yhSFyw6w42XUfB4ScxEpNBkmNHWTMX84ieHWShs5C0je3Mkju 8eGUsZt4viQ/D+I4xSA8Yw7iZnw2GA8NpNvk86kE= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Thomas Schwinge To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] For GCC, newlib combined tree, newlib build-tree testing, use standard search paths X-Act-Checkin: newlib-cygwin X-Git-Author: Thomas Schwinge X-Git-Refname: refs/heads/main X-Git-Oldrev: 6b2ae32ecdfdb8ca1337e19fac3b6e0a4079e769 X-Git-Newrev: 4c7d0dfec5793cbf5cf3930b91f930479126d8ce Message-Id: <20230623061803.A2E623858C2B@sourceware.org> Date: Fri, 23 Jun 2023 06:18:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D4c7d0dfec57= 93cbf5cf3930b91f930479126d8ce commit 4c7d0dfec5793cbf5cf3930b91f930479126d8ce Author: Thomas Schwinge Date: Fri Apr 14 21:26:32 2023 +0200 For GCC, newlib combined tree, newlib build-tree testing, use standard = search paths =20 For example, for GCC/GCN target (AMD GPUs), target libraries are built individually per supported hardware ISA ('-march=3D[...]'). Testing su= ch a toolchain via, for example: =20 $ make RUNTESTFLAGS=3D'--target_board=3D[...]/-march=3Dgfx90a' chec= k[...] =20 ... does work fine for all 'check-gcc-[...]' as well as GCC-provided ta= rget libraries, 'check-target-[...]'. Just for 'check-target-newlib', for t= he example above, not the '-march=3Dgfx90a' newlib libraries are linked in= , but instead always the default ones, which results in link FAILure. This i= s cured simply by skipping use of 'newlib/testsuite/lib/flags.exp', so that the standard search paths as determined by GCC, DejaGnu are used for newlib= , too. Diff: --- newlib/testsuite/lib/flags.exp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/newlib/testsuite/lib/flags.exp b/newlib/testsuite/lib/flags.exp index e1e9acb18..697291e7a 100644 --- a/newlib/testsuite/lib/flags.exp +++ b/newlib/testsuite/lib/flags.exp @@ -4,6 +4,13 @@ # is freely granted, provided that this notice is preserved. # =20 +if [info exists env(XGCC_FLAGS_FOR_TARGET)] { + verbose "GCC, newlib combined tree, build-tree testing; using standard= search paths" + # ... instead of the search paths built here, based on 'objdir' as set= in + # newlib's 'site.exp', which always points to the default multilib. + return +} + # flags.exp: overrides the dejagnu versions of libgloss_link_flags, # newlib_link_flags, and newlib_include_flags.