Skip to content
  • Jon Olav Hauglid's avatar
    16edbd3a
    Bug#18222041: DON'T USE __GNUC__ AND __GNUC_MINOR__ TO TEST FOR COMPILER FEATURES · 16edbd3a
    Jon Olav Hauglid authored
    The problem was that we several places use __GNUC__ and __GNUC_MINOR__ to 
    determine if the current compiler supports a given feature. But since these
    symbols are not only set by GCC, but also by e.g. Clang they can lead to 
    wrong decisions being made.
    
    This patch fixes the problem by instead using feature specific tests using CMake.
    The patch also removes some dead code.
    16edbd3a
    Bug#18222041: DON'T USE __GNUC__ AND __GNUC_MINOR__ TO TEST FOR COMPILER FEATURES
    Jon Olav Hauglid authored
    The problem was that we several places use __GNUC__ and __GNUC_MINOR__ to 
    determine if the current compiler supports a given feature. But since these
    symbols are not only set by GCC, but also by e.g. Clang they can lead to 
    wrong decisions being made.
    
    This patch fixes the problem by instead using feature specific tests using CMake.
    The patch also removes some dead code.
Loading