Ameliorate meson.build

- Only warn about compiler version missmatch in the case that
    the compilers are the same
This commit is contained in:
project-repo 2020-05-26 14:16:58 +02:00
commit a277f06224

View file

@ -224,9 +224,7 @@ reproducible_build_compiler_version = '10.1.0'
if cc.get_id() != reproducible_build_compiler
warning('The compiler "' + cc.get_id() + '" differs from the one used to generate to binary specified in the README section "Reproducible Builds" (' + reproducible_build_compiler + ').')
endif
if cc.version() != reproducible_build_compiler_version
elif cc.version() != reproducible_build_compiler_version
warning('The version of ' + cc.get_id() + ' (' + cc.version() + ') differs from the one used to generate the binary specified in the README section "Reproducible Builds" ' + reproducible_build_compiler_version + '.')
endif