On 18 July 2016 at 07:39, Gao, Liming <[email protected]> wrote: > Ard: > I would like to enable LTO for all ARCHs in new GCC5 tool chain, at least > IA32 and X64. > > I like idea to reuse the same build rule. Your patch adds > lto-ld-wrapper.sh. But, this doesn't work in Windows. As you know, we can > build tips with GCC in windows OS. > (https://sourceforge.net/projects/edk2developertoolsforwindows/files). I > would still support it. Have we other way to do it? >
I mentioned in the commit log that this indeed does not work on Windows. I don't use Windows, so I will not be able to test any alternatives, but I think there are two solutions possible: - use a python script - add support to BaseTools to translate a GNU/LD command line to a GNU/GCC command line. In either case, I suppose it would be implemented in python. The only difference is how to wire it up, i.e., either add it to tools_def.txt (as I have demonstrated), or update the existing build rules for GCC to take the script into account in some way. Regards, Ard. _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

