On Tuesday, 9 March 2021 at 20:33:01 UTC, z wrote:
On Tuesday, 9 March 2021 at 20:23:48 UTC, z wrote:
On Friday, 5 March 2021 at 12:57:43 UTC, z wrote:
...
Then it seems the only way to get AVX-compatible inline
assembly(ldc.llvmasm excluded) is to use an external assembler.
For example :
...
But i'm not really sure how to integrate that into a dub
project, it seems «lflags "filename.obj"» and
preGenerateCommands/preBuildCommands would work but i haven't
tested that.(«dflags "filename.obj"» doesn't work for sure)
In dub.sdl :
lflags "source/asmfunctions.obj"
preGenerateCommands " cd source && *command or bat/sh file that
builds the asm object file(s)*"
It works, but if the package is being imported by another then it
will fail because the way lflags work mean that the linker will
try to find source/asmfunctions.obj from the working directory of
the importer.
This is circumventable with relative paths(if possible).
lflags "../importedpackagesname/source/asmfunctions.obj"