NBISweden / MrBayes

MrBayes is a program for Bayesian inference and model choice across a wide range of phylogenetic and evolutionary models. For documentation and downloading the program, please see the home page:
http://NBISweden.github.io/MrBayes/
GNU General Public License v3.0
224 stars 78 forks source link

Fix/smarter disabling #286

Closed kusalananda closed 8 months ago

kusalananda commented 9 months ago

This PR changes the user-accessible logic in the configure script, ensuring that if a user uses e.g. --disable-sse, all SSE code paths are removed and no SSE-related compiler flags are used. Likewise for --disable-avx and --disable-fma.

This fixes the issue that occurs if a user compiles the code on one system that supports SSE, AVX, and FMA, but runs it on another system which does not have one or several of these extensions. Previously, the code would always be compiled with the associated -m options if the build system supported them (even if the associated code paths were disabled), leading to binaries that could not be used on the target system.

This PR closes #261 This PR closes #194 This PR closes #276