Closed CryZe closed 2 years ago
Spurious link error?!
I'm thinking this is the incremental compilation bug in 1.52.0. We probably should use 1.52.1.
Alright, no idea what's wrong then.
Seems like stable is unaffected by whatever weird bug this is in 1.52 though.
does it build with latest nightly/stable? We can just bump the minimum rust version if it's necessary.
It seems to. Idk if bumping MSRV for a compiler bug makes sense. I'll try 1.53 and co. to see what the next MSRV would need to be.
Alright, failing now on beta too. I'm out of ideas. Works just fine for me locally.
Maybe the specific native target-cpu uses some instructions or so that the MSVC linker can't handle?!
Googling the error makes it sound like the .exe is still running or something?!
Fun, the problem is unrelated to my changes and seems to happen on the main branch too.
I'm guessing that we end up with the same .exe hash and thus it wants to overwrite the previously created one, but Windows runners have started running Windows Defender or so in the background which locks the file for scanning.
well, put the changes in and the rest is a cargo issue.
Well more of a Github Actions bug. We may need to use a different target folder for the target-cpu=native, so it doesn't collide.
Oh. Can we break it up across more CI tasks so that each goes in separate VM instances and they don't clash?
alternative target folder also works too i guess
Yep, cargo clean fails as well, not being able to remove the executables. So they are definitely being scanned.
This is ready now btw. Using a separate target folder worked.
I randomly stumbled across a Chrome bug ticket where they reported that their lowering of saturating float to int casts is suboptimal:
https://bugs.chromium.org/p/v8/issues/detail?id=12094
They by now merged a fix. The code I ported was based on Chrome and thus the same performance pitfall applies to wide.