> -----Original Message----- > From: Aaron Ballman <aa...@aaronballman.com> > Sent: Saturday, August 8, 2020 8:48 AM > To: Eric Christopher <echri...@gmail.com> > Cc: John Emmas <j...@creativepost.co.uk>; Robinson, Paul > <paul.robin...@sony.com>; via cfe-users <cfe-users@lists.llvm.org> > Subject: Re: [cfe-users] Compiling for Linux (with Visual Studio and > Clang) > > On Sat, Aug 8, 2020 at 4:13 AM Eric Christopher <echri...@gmail.com> > 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 <cfe- > 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