On Mon, Sep 12, 2016 at 12:16 PM, Burton, Ross <ross.bur...@intel.com> wrote:
>
> On 12 September 2016 at 19:22, Matthew Stanger <matthew_stan...@trimble.com>
> wrote:
>>
>> I'm using Yocto 1.7.1 I'd like built programs to have the build path
>> striped down. The goal is if I'm looking at some programs log after cross
>> compiling I want this:
>>
>> src/program.c:388
>>
>> where I currently get this:
>>
>> /usr/local/jenkins/workspace/project-build-manual/Project/build-project/tmp/work/arm926ejste-poky-linux-gnuebi/program/2.5.992+gitAUTOINC+1c6d246619-r0/git/src/program.c:388
>>
>> Is it possible to configure Yocto to do this for me? If so where can I
>> find info on how I would do this?
>
> If those paths come from __FILE__ and so on, then currently no.  It would be
> great if GCC could do this, but currently it can not.

There are gcc patches such as this one floating around:

  
http://git.openembedded.org/openembedded-core-contrib/commit/?h=obi/master&id=a1e8d6cfb71367d745f2478c13a7250e41ca4f1b

Or toolchain wrappers such as ccache can convert absolute paths before
calling the compiler:

  https://ccache.samba.org/manual.html#_compiling_in_different_directories


> Ross
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to