gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

Add a new CI step for windows environments

Open P-E-P opened this issue 1 year ago • 4 comments

Add a new CI step on Windows to ensure the project compiles on this platform with mingw.

Motivation: During upstreaming process we discovered some dlsym code was incorrectly disabled, the project does not compile using mingw anymore.

P-E-P avatar May 04 '24 16:05 P-E-P

We'll need #2949

P-E-P avatar May 28 '24 10:05 P-E-P

@MehdiChinoune Any idea about what is going on here ?

From what I understand the standard library requires some win32 functions, I tought linking with -lkernel32 would do the trick but I was proven wrong.

P-E-P avatar Oct 02 '24 14:10 P-E-P

Looks like those functions come from ws2_32 library.

MehdiChinoune avatar Oct 02 '24 15:10 MehdiChinoune

In case you need a list of Win32 libraries that official compiler links check https://github.com/rust-lang/rust/blob/360f7d7b731c508c88b7b56921a92d281c05dbf7/compiler/rustc_target/src/spec/base/windows_gnu.rs#L25 and https://github.com/rust-lang/rust/blob/360f7d7b731c508c88b7b56921a92d281c05dbf7/library/windows_targets/src/lib.rs#L37-L41

mati865 avatar Oct 02 '24 16:10 mati865