From a277f06224d709f78d190c212459fbecbf86b89e Mon Sep 17 00:00:00 2001 From: project-repo Date: Tue, 26 May 2020 14:16:58 +0200 Subject: [PATCH] Ameliorate meson.build - Only warn about compiler version missmatch in the case that the compilers are the same --- meson.build | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 2a2d0ba..de94fda 100644 --- a/meson.build +++ b/meson.build @@ -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