dub icon indicating copy to clipboard operation
dub copied to clipboard

-mattr=+feature should be propagated in the dflags

Open MrcSnm opened this issue 1 month ago • 2 comments

Those bugs are silently breaking packages which depends on ldc features. That same issue also happens when one uses -checkaction=

https://github.com/AuburnSounds/intel-intrinsics/issues/152 https://github.com/AuburnSounds/intel-intrinsics/issues/143

The current solution is to use --combined which most people don't write for no reason

MrcSnm avatar Nov 11 '25 15:11 MrcSnm

My best guess is that when compiled with -mattr=+avx a function returns a 256-bit vector in YMM0, and without in XMM0 and XMM1. Leading to ABI differences.

p0nce avatar Nov 13 '25 11:11 p0nce

Here is a repro DUB project.

repro2.zip

You can see the library is built without -mattr=+avx but the executable is built with -mattr=+avx

p0nce avatar Nov 13 '25 11:11 p0nce