smarco / WFA2-lib

WFA-lib: Wavefront alignment algorithm library v2
Other
162 stars 36 forks source link

Fix endian.h build error on MacOS #85

Closed mencian closed 1 year ago

mencian commented 1 year ago

I am currently attempting to update this software's Bioconda recipe to the new release (v2.3.4): https://github.com/bioconda/bioconda-recipes/pull/43248 and ran into a build error involving endian.h on MacOS (Linux builds fine; see the Azure logs):

/opt/mambaforge/envs/bioconda/conda-bld/wfa2-lib_1695658441139/work/wavefront/wavefront_extend_kernels.c:32:10: fatal error: 'endian.h' file not found
#include <endian.h>
         ^~~~~~~~~~

This PR patches the location of endian.h header file on line 32 in wavefront_extend_kernels.c, which fixes the compilation error on MacOS and FreeBSD.

smarco commented 1 year ago

Great! Thanks