Re: [cfe-users] Compiling for Linux (with Visual Studio and Clang)

2020-08-10 Thread John Emmas via cfe-users

Thanks Paul - I found some instructions for installing WSL and Linux here:-

https://docs.microsoft.com/en-us/windows/wsl/install-win10

and I've managed to get it all installed without any problems - but I 
can't seem to run it  :-(


Basically... it needs me to use Windows PowerShell to enable something 
called the 'Virtual Machine Platform' (that bit worked okay).  But then 
I need to enable Virtualisation which can only be done from within a 
machine's BIOS.  Unfortunately, although I'm running Windows 10, I'm 
actually running it on Mac hardware (i.e. via dual-booting). And Macs 
don't allow access to the BIOS - not even when running Windows... :-(


So it looks like I've hit a brick wall - unless I can find some way to 
enable Virtualisation without needing to do it via the BIOS.


john
___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] Compiling for Linux (with Visual Studio and Clang)

2020-08-10 Thread Robinson, Paul via cfe-users


> -Original Message-
> From: Aaron Ballman 
> Sent: Saturday, August 8, 2020 8:48 AM
> To: Eric Christopher 
> Cc: John Emmas ; Robinson, Paul
> ; via cfe-users 
> Subject: Re: [cfe-users] Compiling for Linux (with Visual Studio and
> Clang)
> 
> On Sat, Aug 8, 2020 at 4:13 AM Eric Christopher 
> wrote:
> >
> > I don't know anyone that is cross compiling from windows to linux using
> visual studio and clang right now. It doesn't mean it can't work, just
> that it's not easy to point you at an example unfortunately.
> >
> > +Robinson, Paul as someone that might know others that are.
> > +Aaron Ballman also.
> >
> > You can also try asking on either irc or discord and see if anyone there
> can help.
> 
> Unfortunately, I don't have any experience in this area and I don't
> know anyone who's tried that. It seems like it should be plausible,
> but you may be breaking new ground.
> 
> ~Aaron

There is, or was, an open-source plugin to drive Clang from VS in native
mode; if that still exists it might be a decent starting point.

The Sony toolkit for PS4 uses Visual Studio to drive clang, a proprietary
linker, and proprietary debugger for cross-building and debugging.  Also
some other tools IIRC.  We use a VS plugin to make this all work smoothly, 
although I don't know any details about it.  This is to say it's all
possible, although like everyone else I'm not aware of any worked example
targeting Linux.
--paulr

> 
> >
> > -eric
> >
> > On Sat, Aug 8, 2020 at 12:00 AM John Emmas via cfe-users  us...@lists.llvm.org> wrote:
> >>
> >> On 04/08/2020 14:46, John Emmas wrote:
> >> > I read somewhere that the clang devs and Microsoft were collaborating
> >> > to make Visual Studio compatible with clang.
> >> >
> >> > So what's the situation if I want to compile some C++ code for Linux?
> >> > [...]  Is there a Linux version of Visual Studio available now?  Or
> >> > does it work by cross-compiling from VS (in Windows) somehow?
> >> >
> >>
> >> Sorry guys... do I need to direct this question to the developers
> >> mailing list - rather than users?
> >> ___
> >> cfe-users mailing list
> >> cfe-users@lists.llvm.org
> >> https://urldefense.com/v3/__https://lists.llvm.org/cgi-
> bin/mailman/listinfo/cfe-
> users__;!!JmoZiZGBv3RvKRSx!pRB0afyWbO1ae5sGXcmnQUF_trZCfMR8ZSewrMYfDL1Tjsd
> QRh-j0MDgdUCdmaPAAg$
___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users