In my code I have a bunch of routines optimized for different platforms, e.g. using x86 AESNI instructions. Not all compilers support them, and they don't even make sense when compiling for a different CPU architecture.
It's much simpler to say "enable this if we can compile it" rather than detecting the compiler and target platform and throwing a mess of conditional compilation into an autoconf script.
glandium|1 year ago
cperciva|1 year ago
It's much simpler to say "enable this if we can compile it" rather than detecting the compiler and target platform and throwing a mess of conditional compilation into an autoconf script.
ComputerGuru|1 year ago
xorcist|1 year ago
If you explicitly set the enable-landlock flag, configure will fail when the feature doesn't compile.
snnn|1 year ago
See: https://cmake.org/cmake/help/latest/command/option.html