Re: [PATCH 07/10] Add support for multiarch system header files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 6, 2014 at 6:31 PM, Ramsay Jones <ramsay@xxxxxxxxxxxxxxxxxxx> wrote:
> On 06/10/14 00:33, Christopher Li wrote:
>> My gcc(4.8, FC20) does not support "-print-multiarch".
>
> Yep, same is true for cygwin.

I see, I thought your patch is expecting some thing from gcc.
Then how to you test this code path?

>>
>>> +       if (multiarch_dir && *multiarch_dir) {
>>> +               add_pre_buffer("#add_system \"/usr/include/%s\"\n", multiarch_dir);
>>> +               add_pre_buffer("#add_system \"/usr/local/include/%s\"\n", multiarch_dir);
>>> +       }
>>
> Again, it works for me. :-D

So I guess multiarch_dir can be empty here. I just did not expect
that.

Is it always prefix with "/usr/include/" and "/usr/local/include" for
different distributions?

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux