From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:42923) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZeHx-0004Qy-AB for guix-patches@gnu.org; Tue, 26 Nov 2019 12:06:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZeHs-000339-6R for guix-patches@gnu.org; Tue, 26 Nov 2019 12:06:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46886) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZeHq-00032Z-9D for guix-patches@gnu.org; Tue, 26 Nov 2019 12:06:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZeHq-0005Eb-5D for guix-patches@gnu.org; Tue, 26 Nov 2019 12:06:02 -0500 Subject: [bug#38376] [PATCH] gnu: clang: Fix search path detection with --sysroot. Resent-Message-ID: Date: Tue, 26 Nov 2019 17:05:05 +0000 From: Carl Dong Message-ID: <379EB7C5-A387-4331-A48A-91C9083F3A73@carldong.me> In-Reply-To: <8736ebt8fr.fsf@gmail.com> References: <20191125180144.1060289-1-contact@carldong.me> <8736ebt8fr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Carl Dong Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Mathieu Othacehe Cc: 38376@debbugs.gnu.org Hi Mathieu! I think that=E2=80=99s an excellent idea but unfortunately I don=E2=80= =99t have the bandwidth for it currently=E2=80=A6 I=E2=80=99ll put it on my= TODO list though :-) Please do let me know if there=E2=80=99s anything amiss in the patch as it = stands right now! Cheers, Carl Dong > On Nov 26, 2019, at 2:15 AM, Mathieu Othacehe wrot= e: >=20 >=20 >=20 > Hello Carl, >=20 >> This was fine when running clang normally, but when a user supplies >> clang with --sysroot, clang _should_ do the search path detection. This >> commit fixes runing clang with --sysroot. >=20 > Thanks for your patch. Do you think this could be done in a way that can > be upstreamed? In lib/Driver/ToolChains/Gnu.cpp, there are some Gentoo > specific stuff, maybe they would agree to integrate some Guix/nix specifi= c > stuff too. >=20 > WDYT? >=20 > Mathieu >=20 >=20 >=20