toolchains_llvm icon indicating copy to clipboard operation
toolchains_llvm copied to clipboard

WIP: VERY EARLY DRAFT! WIP WIP WIP!!!! - Add clang-cl windows cross compilation

Open GregBowyer opened this issue 3 years ago • 2 comments

Hi, this will be a little insane and a little strange, but I would like to get a read on the following as I refine it towards a potential addition to these rules.

The following code allows for cross compiling windows (with MSVC ABI rather than GNU, and I hope to adapt it to cope with clang on windows too.

If this is something wanted I can polish these rules further rather than fork and adapt.

This is very much an initial read, so there are some hacks, a hard-coded path I could use help with and probably constructions that I am sure we want to change.

As an example of this running (the binary is bytewise equivalent to the windows produced version) is as follows.

https://youtu.be/v54e1pSMUbw

GregBowyer avatar Aug 19 '22 00:08 GregBowyer

Thanks! We would definitely welcome any Windows support in here, if we can introduce it while keeping things relatively clean. I can give you write permissions if you want. Unfortunately, I don't pay attention to this project anymore, so won't directly review your code.

siddharthab avatar Aug 19 '22 00:08 siddharthab

Thanks! We would definitely welcome any Windows support in here, if we can introduce it while keeping things relatively clean. I can give you write permissions if you want. Unfortunately, I don't pay attention to this project anymore, so won't directly review your code.

Might be good, I will wait for others to chime in on thoughts of how to do these things.

GregBowyer avatar Aug 19 '22 16:08 GregBowyer

@GregBowyer, are you still interested in pursuing this?

siddharthab avatar Mar 11 '24 03:03 siddharthab

Closing now because of inactivity. We can reopen if needed.

siddharthab avatar Mar 14 '24 16:03 siddharthab