Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 2010 13:40:33 +0200
From:      Ed Schouten <ed@80386.nl>
To:        Dimitry Andric <dimitry@andric.com>
Cc:        FreeBSD Current <current@freebsd.org>
Subject:   Re: Building world with clang
Message-ID:  <20100817114033.GX2978@hoeg.nl>
In-Reply-To: <4C6A7357.8000606@andric.com>
References:  <4C6A7357.8000606@andric.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--WVf18ZLo9bznw8Mz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Dimitry!

* Dimitry Andric <dimitry@andric.com> wrote:
> @@ -408,9 +411,10 @@ static bool getWindowsSDKDir(std::string &path) {
> =20
>  void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &tripl=
e,
>                                              const HeaderSearchOptions &H=
SOpts) {
> -#if 0 /* Remove unneeded include paths. */
>    // FIXME: temporary hack: hard-coded paths.
> -  AddPath("/usr/local/include", System, true, false, false);
> +#ifndef __FreeBSD__
> +  AddPath(CLANG_PREFIX "/usr/local/include", System, true, false, false);
> +#endif
> =20
>    // Builtin includes use #include_next directives and should be positio=
ned
>    // just prior C include dirs.

Hmmm... Do we really want this? /usr/local/include is omitted from our
compiler include paths on purpose, to prevent accidental linkage against
pieces of software built from ports.

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--WVf18ZLo9bznw8Mz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (FreeBSD)

iEYEARECAAYFAkxqdTEACgkQ52SDGA2eCwVq7wCeJnfKESMUH+oGAd2EQVg1N7l5
6n0AnRE7nDHUrt2MKMqr+/tTR4VPSNxi
=ruLg
-----END PGP SIGNATURE-----

--WVf18ZLo9bznw8Mz--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100817114033.GX2978>