Closed karashiiro closed 1 year ago
I think I caught the source of the bug: the linker does not yet differentiate between static libraries and executables.
The test_lib
s seem to not build at all, but the output of rustc is empty. The assembly that you can't open is likely an old one.
UPDATE: the issue with assemblies not being built is a separate one, and it got fixed. It seems like the codegen saves .rlib files as .dll
Fixed in 26f6a20b18f1f81a75db56383479429d78d8b0e7
. The root cause of the bugs was .rlib files being saved as .dll, and the linker not being invoked by the test runner.
Confirmed working now, thanks!
The assembly output for
test_lib
tests seems to be invalid, and cannot be loaded with dotPeek to view their IL. Therun_test
executables seem to work fine.As a comparison, this is what shows up when loading
add.exe
:And this is what shows up when loading
binops.dll
:I think this has been happening ever since the linker changes about a week ago.