dub
dub copied to clipboard
-mattr=+feature should be propagated in the dflags
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
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.
Here is a repro DUB project.
You can see the library is built without -mattr=+avx but the executable is built with -mattr=+avx