From d2df15e520999772a3dc42265712002e57a1b89e Mon Sep 17 00:00:00 2001 From: satmd Date: Sun, 11 Feb 2024 05:18:32 +0100 Subject: Use `--version` to check whether the compiler binary is valid. Ref: #2071--- make/configure.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make') diff --git a/make/configure.pm b/make/configure.pm index feb7c0f59..23bfff6a3 100644 --- a/make/configure.pm +++ b/make/configure.pm @@ -94,7 +94,7 @@ sub __get_template_settings($$$) { sub __test_compiler($) { my $compiler = shift; - return 0 unless run_test("`$compiler`", !system "$compiler -v ${\CONFIGURE_ERROR_PIPE}"); + return 0 unless run_test("`$compiler`", !system "$compiler --version ${\CONFIGURE_ERROR_PIPE}"); return 0 unless run_test("`$compiler`", test_file($compiler, 'compiler.cpp', '-fno-rtti'), 'compatible'); return 1; } -- cgit v1.3.1-10-gc9f91