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

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

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://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


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

2020-08-08 Thread Eric Christopher via cfe-users
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.

-eric

On Sat, Aug 8, 2020 at 12:00 AM John Emmas via cfe-users <
cfe-users@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://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
___
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-08 Thread John Emmas via cfe-users

On 08/08/2020 08:07, Harry Wagstaff wrote:
You might have more luck asking on a visual studio forum since it 
seems vs-specific. I think a lot of people cross-developing for Linux 
are now using WSL, and VS Code has good support for this but I'm not 
sure about Visual Studio itself.




On 08/08/2020 09:13, 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.



Many thanks guys,

A few months ago I asked on the CodeGuru forum (which is how I found out 
about Visual Studio and Clang!!)


But no-one seems to know if VS+Clang can be used together to produce 
Linux apps.  I'm pretty sure VS can produce .NET apps for both Windows 
and Linux - but I'm guessing not regular C++ apps.


Anyway... regarding Paul and Aaron - are they members of this mailing 
list by any chance?  If not - where could I find Discord? I've just 
tried a few Google searches for Clang and Discord but they all come up 
as Error 404  :-(


Thanks again - 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-08 Thread Eric Christopher via cfe-users
There are directions for discord and irc in the left hand panel on llvm.org
:)

-eric

On Sat, Aug 8, 2020 at 1:49 AM John Emmas via cfe-users <
cfe-users@lists.llvm.org> wrote:

> On 08/08/2020 08:07, Harry Wagstaff wrote:
>
> You might have more luck asking on a visual studio forum since it seems
> vs-specific. I think a lot of people cross-developing for Linux are now
> using WSL, and VS Code has good support for this but I'm not sure about
> Visual Studio itself.
>
>
> On 08/08/2020 09:13, 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.
>
>
> Many thanks guys,
>
> A few months ago I asked on the CodeGuru forum (which is how I found out
> about Visual Studio and Clang!!)
>
> But no-one seems to know if VS+Clang can be used together to produce Linux
> apps.  I'm pretty sure VS can produce .NET apps for both Windows and Linux
> - but I'm guessing not regular C++ apps.
>
> Anyway... regarding Paul and Aaron - are they members of this mailing list
> by any chance?  If not - where could I find Discord?  I've just tried a few
> Google searches for Clang and Discord but they all come up as Error 404  :-(
>
> Thanks again - John
> ___
> cfe-users mailing list
> cfe-users@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
___
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-08 Thread John Emmas via cfe-users

On 08/08/2020 10:14, Eric Christopher wrote:
There are directions for discord and irc in the left hand panel on 
llvm.org  :)




Got it - thanks !
___
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-08 Thread Aaron Ballman via cfe-users
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

>
> -eric
>
> On Sat, Aug 8, 2020 at 12:00 AM John Emmas via cfe-users 
>  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://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
___
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-08 Thread John Emmas via cfe-users

On 08/08/2020 13:47, Aaron Ballman wrote:

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.



Haha - story of my life... ;)

I did a bit more digging and AFAICT Visual Studio does support WSL (like 
Harry said earlier) :-


https://devblogs.microsoft.com/cppblog/c-with-visual-studio-2019-and-windows-subsystem-for-linux-wsl/

It seems to be a way to install Linux so that it can be launched in 
Windows10 - and the Linux distro of your choice will then run in a 
virtual machine - BUT - if I'm reading things correctly, Visual Studio 
can then interact with WSL.  So in effect, you can run Visual Studio (in 
Windows 10) but make it compile apps that'll then run under Linux.


The only minor drawback is that although Visual Studio is supported, 
Visual C++ itself isn't.  So I'd need to install an alternative compiler 
called Clang.  In fact there's even a hint that gcc is also supported.!


I might try it all later.

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