Xiaofeng:
  BaseTools Windows Makefile (BaseTools\Source\C\Makefile) sets ARCH = IA32. It 
means BaseTools C tool passes IA32 arch only in Windows OS. I don't try 
building it with X64 arch. You can update ARCH=X64, and try building BaseTools 
with 64bit VS compiler. If you meet with warning or error, you can try to clean 
up them. 

Thanks
Liming
> -----Original Message-----
> From: edk2-devel [mailto:[email protected]] On Behalf Of
> wang xiaofeng
> Sent: Friday, December 23, 2016 12:16 PM
> To: Andrew Fish <[email protected]>
> Cc: edk2-devel <[email protected]>
> Subject: Re: [edk2] How to build commonlib of Basetools in x64 mode
> 
> HI Fish,
>    Thanks for your answer. Actually I am not trying to build base tools . I am
> writing a windows console tool and want to reuse some code of base tools
> common library, All the changes will be in my platform packages, Due to
> some history reason , my own tool is treating UINTN as x64 mode, so will it
> possible to build common.lib in X64 mode?
>   Thanks in advance!
> 
> 
> 
> 
> 
> 
> 
> 
> At 2016-12-23 11:59:38, "Andrew Fish" <[email protected]> wrote:
> >The base tools width could be OS Specific so you should not depend on it. In
> other words it has nothing to do with your ROM. You should code tools to
> exact sizes, and only use UINTN if you don't care about size.
> >
> >Sent from my iPhone
> >
> >> On Dec 22, 2016, at 7:35 PM, wang xiaofeng <[email protected]>
> wrote:
> >>
> >> Hi Base tool owners,
> >>   I tried to build commonlib  in basetools . And use the library file in my
> own application tool . I just found the commonlib is build in IA32 mode ,this
> means UINTN is 4 byte in the output lib. I expect to build a X64 mode
> Common.lib ,can you help me?
> >>   Or base tools can only run in IA32 mode?
> >> _______________________________________________
> >> edk2-devel mailing list
> >> [email protected]
> >> https://lists.01.org/mailman/listinfo/edk2-devel
> >_______________________________________________
> >edk2-devel mailing list
> >[email protected]
> >https://lists.01.org/mailman/listinfo/edk2-devel
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to