[PATCH 4 of 7] cc/gcc: Add support for getting a gcc snapshot

Bryan Hundven bryanhundven@gmail.com
Fri Dec 10 23:14:00 GMT 2010


On Fri, Dec 10, 2010 at 3:13 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> On Fri, Dec 10, 2010 at 2:10 PM, Yann E. MORIN
> <yann.morin.1998@anciens.enib.fr> wrote:
>> Bryan, All,
>>
>> On Friday 10 December 2010 19:41:31 Bryan Hundven wrote:
>>> for _path in "LIST OF PATHS"; do
>>> for _file in $(find ${_path} -type f | xargs file | grep 'not
>>> stripped' | cut -d: -f1); do ${CT_TARGET}-strip ${_file}; done
>>> done
>>
>> Well, the question was rather about how to establish this "LIST OF PATHS"
>> in the first place. Once we have that, it's fairly easy to find executables
>> (and also libraries?) to be stripped.
>
> config STRIP_ALL_TOOLCHAIN_EXECUTABLES
>    bool
>    prompt "Strip all toolchain executables"
>    default y
>    help
>      All build host executables contain a lot of unnecessary info.
>      By stripping all executables it slightly speeds up the compilation
>      of large projects.
>      NOTE: It does NOT strip the target libraries, only HOST executables
>
>
> Right... I shouldn't be stripping libraries, unless we introduce
> STRIP_ALL_TOOLCHAIN_LIBRARIES... which we currently do not.
>
> Maybe this will suffice?:
>
>            for _file in $(find ${CT_PREFIX_DIR} -type f | xargs file | \
>                    grep 'not stripped'| grep 'executable' | cut -d: -f1); do
>                CT_DoExecLog ALL ${CT_HOST}-strip ${strip_args} "${_file}"
>            done

and maybe ALL should be EXTRA or DEBUG.

> Then we are basically getting all of the executables that are not stripped.
> The more options we add to find, the faster find will run. So if we
> know that all 'executables' are actually '0755' or '0775' (at least
> executable by the user), we could add that to find too.
>
>> Regards,
>> Yann E. MORIN.
>>
>> --
>> .-----------------.--------------------.------------------.--------------------.
>> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
>> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
>> | +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
>> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
>> '------------------------------^-------^------------------^--------------------'
>>
>
> -Bryan
>



-- 
Bryan Hundven
bryanhundven@gmail.com

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list