Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cross compiling to Windows with clang-cl #339

Merged
merged 1 commit into from
Aug 3, 2020
Merged

Conversation

Jake-Shadle
Copy link
Contributor

@Jake-Shadle Jake-Shadle commented Aug 3, 2020

This fixes an issue where targeting x86_64-pc-windows-msvc from a non-windows host would fail due to explicit usage of lib.exe and ml64.exe. The code now assumes that if that target is used from a non-windows host, the compiler is capable assembling files with the GAS syntax instead.

@kali
Copy link
Collaborator

kali commented Aug 3, 2020

Thanks for the patch, just checking the CI is happy with it. Should we put this configuration (targetting msvc from linux for instance) under CI ?

@Jake-Shadle
Copy link
Contributor Author

We could do that, the question would be if there are any other C/C++ dependencies that are compiled in, since unfortunately it's not convenient to acquire the MSVCRT or windows libraries on a non-windows platform.

@kali
Copy link
Collaborator

kali commented Aug 3, 2020

All right. This sounds non-trivial enough. We'll consider we have enough coverage with the windows native build. Merging.

@kali kali merged commit 03ea832 into sonos:main Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants