Open volsa opened 1 month ago
Hmm, maybe this isn't a bug after all? Inkwell does this intentionally here https://github.com/TheDan64/inkwell/blob/d916c66d2cedb8bc58c187df8403d9fc71eb0ad4/src/values/mod.rs#L219
I tried fixing the snapshot tests under MacOS, removing these leading commas for all tests in the codegen/
folder such that the IR is identical to the master branch. While its working (see https://github.com/PLC-lang/rusty/compare/macos-codegen) the correctness and integration tests fail with a sigbus panic. Not sure why, but the section names seem to cause the panic under MacOS. This needs further investigation...
Describe the bug Currently
cargo test
will fail with snapshot diffs because a leading comma is appended to the section names. For example the testmultiple_files_with_debug_info
will fail due toI'm unsure if this is a MacOS thing or ARM in general but I suspect the former.
To Reproduce Under MacOS 14.4.1 switch to the master branch and run
cargo t
Expected behavior The snapshots shouldn't change